Re: daemon start/stop for sysvinit

2021-02-06 Thread Paul Wise
On Sat, Feb 6, 2021 at 9:02 PM Tong Sun wrote:

> Is there a way to make both systemd and sysvinit Debian happy, for my
> Perl based daemon?

sysvinit is not compatible with systemd units. You will need to add an
init script, see the simple example in the init-d-script(5) manual
page, unless your daemon is more complicated.

> > Letting dh_installinit put code into postinst etc has done the right
> > thing for me in a package of my own
>
> But I'm having a hard time making some senses out of that short sentence.

I think that is referring to the situation where you already have an
init script and dh_installinit from debhelper takes care of running
the init script from the postinst when you install the package.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise



daemon start/stop for sysvinit

2021-02-06 Thread Tong Sun
Hi,

(Trying to squash a few bugs before the freeze)

As it says in https://wiki.debian.org/Init --

> Debian packages are not required to provide sysvinit start scripts

But I have a bug opened on my packages, which is packaged for systemd,
that on his sysvinit based Debian, the daemon start/stop is not
working.

Is there a way to make both systemd and sysvinit Debian happy, for my
Perl based daemon? He briefly mentioned:

> Letting dh_installinit put code into postinst etc has done the right
> thing for me in a package of my own

But I'm having a hard time making some senses out of that short sentence.

Please advise. Thanks