Re: [systemd-devel] howto handle one time shutdown programs

2015-06-30 Thread Andrei Borzenkov
On Tue, Jun 30, 2015 at 2:35 PM, Andreas Buschmann wrote: > Hello Johannes, > > On Thu 25-Jun-2015 20:09 CEST Johannes Ernst writes: > >>> On Jun 25, 2015, at 7:57, Andreas Buschmann wrote: >>> >>> I am writing a systemd .service file to handle NVDIMMs. >>> >>> - start >>> - stop >>> - reload >>>

Re: [systemd-devel] howto handle one time shutdown programs

2015-06-30 Thread Andreas Buschmann
Hello Johannes, On Thu 25-Jun-2015 20:09 CEST Johannes Ernst writes: >> On Jun 25, 2015, at 7:57, Andreas Buschmann wrote: >> >> I am writing a systemd .service file to handle NVDIMMs. >> >> - start >> - stop >> - reload >> all work >> >> The problem child is "restart". >> Restart is internal

Re: [systemd-devel] howto handle one time shutdown programs

2015-06-26 Thread Colin Guthrie
Andreas Buschmann wrote on 25/06/15 15:57: > Hello, > > I am writing a systemd .service file to handle NVDIMMs. > > - start > - stop > - reload > all work > > The problem child is "restart". > Restart is internally implemented as stop followed by start. > > The problem is, that stop calls a pro

Re: [systemd-devel] howto handle one time shutdown programs

2015-06-26 Thread Reindl Harald
Am 26.06.2015 um 09:31 schrieb Andrei Borzenkov: How is that different from the user executing: systemctl start your.service systemctl stop your.service systemctl start your.service without reboot? Those initscripts I am aware of avoided this issue by not stopping anything on restart the

Re: [systemd-devel] howto handle one time shutdown programs

2015-06-26 Thread Andrei Borzenkov
В Thu, 25 Jun 2015 11:09:22 -0700 Johannes Ernst пишет: > Hallo Andreas, > > > On Jun 25, 2015, at 7:57, Andreas Buschmann wrote: > > > > Hello, > > > > I am writing a systemd .service file to handle NVDIMMs. > > > > - start > > - stop > > - reload > > all work > > > > The problem child is

Re: [systemd-devel] howto handle one time shutdown programs

2015-06-25 Thread Johannes Ernst
Hallo Andreas, > On Jun 25, 2015, at 7:57, Andreas Buschmann wrote: > > Hello, > > I am writing a systemd .service file to handle NVDIMMs. > > - start > - stop > - reload > all work > > The problem child is "restart". > Restart is internally implemented as stop followed by start. > > The pro