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 :-(
[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
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
06-16-2011, 10:53 AM
Michal Schmidt
why does my systemd-services not work?
On 06/16/2011 12:49 PM, Reindl Harald wrote:
>> [Service]
>> Type=fork
Type=
Configures the process start-up type for this service unit.
One of simple, forking, oneshot, dbus, notify.
Try "forking", not "fork"
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
06-16-2011, 11:07 AM
Reindl Harald
why does my systemd-services not work?
thank you! in this case it was really a typo
but "dbmail-imapd" is/was correct with "forking"
you can see the master-porcess and a child shortly in ps aux but
after a few seconds systemd changes to "deactivating (stop-sigterm)"
and is killing the processes
Am 16.06.2011 12:53, schrieb Michal Schmidt:
> On 06/16/2011 12:49 PM, Reindl Harald wrote:
>>> [Service]
>>> Type=fork
>
> Type=
> Configures the process start-up type for this service unit.
> One of simple, forking, oneshot, dbus, notify.
>
> Try "forking", not "fork"
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
06-16-2011, 11:25 AM
Michal Schmidt
why does my systemd-services not work?
On 06/16/2011 01:07 PM, Reindl Harald wrote:
> you can see the master-porcess and a child shortly in ps aux but
> after a few seconds systemd changes to "deactivating (stop-sigterm)"
> and is killing the processes
...
> [root@testserver:/lib/systemd/system]$ systemctl status dbmail-imapd.service
> dbmail-imapd.service - DBMail IMAP Server
> Loaded: loaded (/lib/systemd/system/dbmail-imapd.service)
> Active: deactivating (stop-sigterm) since Thu, 16 Jun 2011 13:05:11 +0200; 1s ago
> Process: 5013 ExecStart=/usr/sbin/dbmail-imapd (code=exited, status=0/SUCCESS)
> Main PID: 5014 (code=exited, status=0/SUCCESS)
When the main PID of the service exits, the default action is to kill
the whole cgroup.
The question is why did the main PID exit in the first place.
Michal
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
06-16-2011, 11:30 AM
Reindl Harald
why does my systemd-services not work?
Am 16.06.2011 13:25, schrieb Michal Schmidt:
> On 06/16/2011 01:07 PM, Reindl Harald wrote:
>> you can see the master-porcess and a child shortly in ps aux but
>> after a few seconds systemd changes to "deactivating (stop-sigterm)"
>> and is killing the processes
> ...
>
>> [root@testserver:/lib/systemd/system]$ systemctl status dbmail-imapd.service
>> dbmail-imapd.service - DBMail IMAP Server
>> Loaded: loaded (/lib/systemd/system/dbmail-imapd.service)
>> Active: deactivating (stop-sigterm) since Thu, 16 Jun 2011 13:05:11 +0200; 1s ago
>> Process: 5013 ExecStart=/usr/sbin/dbmail-imapd (code=exited, status=0/SUCCESS)
>> Main PID: 5014 (code=exited, status=0/SUCCESS)
>
> When the main PID of the service exits, the default action is to kill
> the whole cgroup.
> The question is why did the main PID exit in the first place.
i can not answer this question :-(
strange is that the service unchanged is running at the moment
i have seen it one time also on boot start sucessful
but since with old sysv the service never stopped to work i am unhappy
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel