Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-25 Thread Andrei Borzenkov
25.07.2016 20:48, Lennart Poettering пишет: > "su" opens user sessions, it does substantially more than just change > UIDs. Consider using "runuser" at least. > > The fact that a user session is created means that systemd will track > the code invoked like that independently of the service unit,

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-25 Thread Lennart Poettering
On Thu, 14.07.16 12:34, Holger Kiehl (holger.ki...@dwd.de) wrote: > Hello, > > I am new to systemd and the maintainer of the file distribution software > AFD (http://www.dwd.de/AFD) and I am trying to adapt this application > to systemd. The problem I am unable to solve is that doing a reboot, >

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-19 Thread Andrei Borzenkov
On Mon, Jul 18, 2016 at 4:30 PM, Holger Kiehl wrote: > > I am beginning to wonder, even if I write proper unit files (using templates), > the user is allowed to start and stop his AFD, either via command line or GUI. > If he now does it with the provided tools, the process

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-18 Thread Holger Kiehl
On Fri, 15 Jul 2016, Mantas Mikulėnas wrote: > On Thu, Jul 14, 2016 at 3:34 PM, Holger Kiehl wrote: > Hello, > > I am new to systemd and the maintainer of the file distribution > software > AFD (http://www.dwd.de/AFD) and I am trying to adapt this >

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-18 Thread Holger Kiehl
On Fri, 15 Jul 2016, Andrei Borzenkov wrote: > 15.07.2016 13:28, Holger Kiehl пишет: > > I tried to avoid Type=forking and PIDFile= because I then have to maintain > > two different init versions, systemd and System-V-Init. I think there will > > always be other Unix systems around without

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-15 Thread Andrei Borzenkov
15.07.2016 13:28, Holger Kiehl пишет: > I tried to avoid Type=forking and PIDFile= because I then have to maintain > two different init versions, systemd and System-V-Init. I think there will > always be other Unix systems around without systemd and I do not want to > loose those users. > > Would

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-15 Thread Mantas Mikulėnas
On Thu, Jul 14, 2016 at 3:34 PM, Holger Kiehl wrote: > Hello, > > I am new to systemd and the maintainer of the file distribution software > AFD (http://www.dwd.de/AFD) and I am trying to adapt this application > to systemd. The problem I am unable to solve is that doing a

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-15 Thread Holger Kiehl
On Thu, 14 Jul 2016, Andrei Borzenkov wrote: > 14.07.2016 15:34, Holger Kiehl пишет: > > Hello, > > > > I am new to systemd and the maintainer of the file distribution software > > AFD (http://www.dwd.de/AFD) and I am trying to adapt this application > > to systemd. The problem I am unable to

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-14 Thread Andrei Borzenkov
14.07.2016 15:34, Holger Kiehl пишет: > Hello, > > I am new to systemd and the maintainer of the file distribution software > AFD (http://www.dwd.de/AFD) and I am trying to adapt this application > to systemd. The problem I am unable to solve is that doing a reboot, > poweroff or halt, all

[systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-14 Thread Holger Kiehl
Hello, I am new to systemd and the maintainer of the file distribution software AFD (http://www.dwd.de/AFD) and I am trying to adapt this application to systemd. The problem I am unable to solve is that doing a reboot, poweroff or halt, all process get a SIGTERM before systemd calls the command