Re: systemd: Can Type=simple be used with a wrapper script?

2012-04-16 Thread Nils Philippsen
On Mon, 2012-04-16 at 10:24 -0500, Richard Shaw wrote:
 I'm working on a package that uses a wrapper script to start the
 daemon, so as the subject says:
 
 Can I use Type=simple if the daemon uses a wrapper script or am I
 stuck with Type=forking?

AIUI yes, but you have to exec the real binary, i.e. the PID of your
daemon mustn't change lest systemd thinks your daemon died.

Nils
-- 
Nils Philippsen  Those who would give up Essential Liberty to purchase 
Red Hat   a little Temporary Safety, deserve neither Liberty
n...@redhat.com   nor Safety.  --  Benjamin Franklin, 1759
PGP fingerprint:  C4A8 9474 5C4C ADE3 2B8F  656D 47D8 9B65 6951 3011

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: systemd: Can Type=simple be used with a wrapper script?

2012-04-16 Thread Richard Shaw
On Mon, Apr 16, 2012 at 10:30 AM, Nils Philippsen n...@redhat.com wrote:
 On Mon, 2012-04-16 at 10:24 -0500, Richard Shaw wrote:
 I'm working on a package that uses a wrapper script to start the
 daemon, so as the subject says:

 Can I use Type=simple if the daemon uses a wrapper script or am I
 stuck with Type=forking?

 AIUI yes, but you have to exec the real binary, i.e. the PID of your
 daemon mustn't change lest systemd thinks your daemon died.

So really no :)

That's OK, I can use forking...

Thanks,
Richard
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: systemd: Can Type=simple be used with a wrapper script?

2012-04-16 Thread Richard Shaw
On Mon, Apr 16, 2012 at 10:30 AM, Nils Philippsen n...@redhat.com wrote:
 On Mon, 2012-04-16 at 10:24 -0500, Richard Shaw wrote:
 I'm working on a package that uses a wrapper script to start the
 daemon, so as the subject says:

 Can I use Type=simple if the daemon uses a wrapper script or am I
 stuck with Type=forking?

 AIUI yes, but you have to exec the real binary, i.e. the PID of your
 daemon mustn't change lest systemd thinks your daemon died.

Ok, after looking through the wrapper script in detail I FINALLY get
what you meant :) I think type simple is going to work.

Thanks,
Richard
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel