independent of the use of Type=simple,fork or oneshot systemd always kills my services, the process is fired up and "status" says "deactivating (stop-sigterm)" reuslting in the process is killed after a short time if i start the "/usr/bin/mpd" manually as root it starts, drop permissions (switch to user mpd) and runs in background forever the same happens with everything i try to migrate from sysv to systemd except two perl-services :-( > [Unit] > Description=The Music Player Daemon > After=syslog.target > > [Service] > Type=fork > ExecStart=/usr/bin/mpd > > [Install] > WantedBy=multi-user.target [root@testserver:~]$ systemctl start mpd.service [root@testserver:~]$ ps aux | grep mpd root 4344 0.1 2.5 542804 29988 pts/1 Sl 12:32 0:01 kate systemd-services/mpd.service mpd 4557 0.0 1.0 456484 12932 ? Ssl 12:47 0:00 /usr/bin/mpd root 4562 0.0 0.0 110668 860 pts/1 S+ 12:47 0:00 grep --color mpd [root@testserver:~]$ netstat -l | grep mpd tcp 0 0 0.0.0.0:mshvlm 0.0.0.0:* LISTEN 4557/mpd [root@testserver:~]$ systemctl status mpd.service mpd.service - The Music Player Daemon Loaded: loaded (/lib/systemd/system/mpd.service) Active: deactivating (stop-sigterm) since Thu, 16 Jun 2011 12:47:13 +0200; 14s ago Process: 4554 ExecStart=/usr/bin/mpd (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/mpd.service â 4557 /usr/bin/mpd
Attachment:
signature.asc
Description: OpenPGP digital signature
-- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel