Re: howto restart a service in postinst script (Stretch and newer)

2017-08-07 Thread Harald Dunkel
Hi Christian, On Sun, 6 Aug 2017 09:34:31 +0200 Christian Seiler wrote: > > For things that are only available on systemd (for example if you > have split the service additionally for systemd, while sysvinit is > still just a single script) you should use the code that is >

Re: howto restart a service in postinst script (Stretch and newer)

2017-08-06 Thread Christian Seiler
Hi there, On 08/04/2017 12:30 PM, Harald Dunkel wrote: > What is the right way to restart a service from the postinst > script for Stretch and newer? The same way as before: if it has both an init script and a systemd service, just call invoke-rc.d script restart or invoke-rc.d script restart

Re: howto restart a service in postinst script (Stretch and newer)

2017-08-06 Thread Christian Seiler
On 08/06/2017 05:28 AM, Richard Hector wrote: > On 06/08/17 04:43, Sven Hartge wrote: >> Harald Dunkel wrote: >>> On Sat, 5 Aug 2017 11:56:07 +0900 Mark Fletcher wrote: On Fri, Aug 04, 2017 at 12:30:25PM +0200, Harald Dunkel wrote: >> > What is the

Re: howto restart a service in postinst script (Stretch and newer)

2017-08-05 Thread Richard Hector
On 06/08/17 04:43, Sven Hartge wrote: > Harald Dunkel wrote: >> On Sat, 5 Aug 2017 11:56:07 +0900 Mark Fletcher wrote: >>> On Fri, Aug 04, 2017 at 12:30:25PM +0200, Harald Dunkel wrote: > What is the right way to restart a service from the postinst

Re: howto restart a service in postinst script (Stretch and newer)

2017-08-05 Thread Sven Hartge
Harald Dunkel wrote: > On Sat, 5 Aug 2017 11:56:07 +0900 Mark Fletcher wrote: >> On Fri, Aug 04, 2017 at 12:30:25PM +0200, Harald Dunkel wrote: >>> What is the right way to restart a service from the postinst >>> script for Stretch and newer? >> I may be

Re: howto restart a service in postinst script (Stretch and newer)

2017-08-04 Thread Mark Fletcher
On Fri, Aug 04, 2017 at 12:30:25PM +0200, Harald Dunkel wrote: > Hi folks, > > the Debian Policy Manual still talks about "run levels" and > "init.d scripts" on > https://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit . > No word about systemd and others. > > What is the right way

howto restart a service in postinst script (Stretch and newer)

2017-08-04 Thread Harald Dunkel
Hi folks, the Debian Policy Manual still talks about "run levels" and "init.d scripts" on https://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit . No word about systemd and others. What is the right way to restart a service from the postinst script for Stretch and newer? Reason