why does my systemd-services not work?
Reindl Harald
h.reindl at thelounge.net
Thu Jun 16 10:49:36 UTC 2011
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 at testserver:~]$ systemctl start mpd.service
[root at 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 at testserver:~]$ netstat -l | grep mpd
tcp 0 0 0.0.0.0:mshvlm 0.0.0.0:* LISTEN 4557/mpd
[root at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20110616/549c8915/attachment.bin
More information about the devel
mailing list