Re: [systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

2016-06-09 Thread Ross Lagerwall
On Thu, Jun 9, 2016 at 11:00 AM, Jóhann B. Guðmundsson wrote: > On 06/09/2016 09:02 AM, Ross Lagerwall wrote: > >> On Thu, Jun 9, 2016 at 9:55 AM, Bao Nguyen wrote: >> With a new enough systemd, you should be able to add a snippet to extend >> the initscript

Re: [systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

2016-06-09 Thread Jóhann B . Guðmundsson
On 06/09/2016 09:02 AM, Ross Lagerwall wrote: On Thu, Jun 9, 2016 at 9:55 AM, Bao Nguyen wrote: With a new enough systemd, you should be able to add a snippet to extend the initscript like this: $ cat /etc/systemd/system/my_lsb_service.service.d/local.conf [Unit]

Re: [systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

2016-06-09 Thread Andrei Borzenkov
On Thu, Jun 9, 2016 at 1:00 PM, Jóhann B. Guðmundsson wrote: > On 06/09/2016 09:02 AM, Ross Lagerwall wrote: > >> On Thu, Jun 9, 2016 at 9:55 AM, Bao Nguyen wrote: >> With a new enough systemd, you should be able to add a snippet to extend >> the initscript

Re: [systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

2016-06-09 Thread Reindl Harald
Am 09.06.2016 um 12:02 schrieb Andrei Borzenkov: On Thu, Jun 9, 2016 at 1:00 PM, Jóhann B. Guðmundsson wrote: On 06/09/2016 09:02 AM, Ross Lagerwall wrote: On Thu, Jun 9, 2016 at 9:55 AM, Bao Nguyen wrote: With a new enough systemd, you should be able

Re: [systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

2016-06-09 Thread Jóhann B . Guðmundsson
On 06/09/2016 08:55 AM, Bao Nguyen wrote: Can it be declared like that? Can it work as expected if LSB depends on systemd service? Migrate that scripted mess to type units and be done with it. JBG ___ systemd-devel mailing list

Re: [systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

2016-06-09 Thread Bao Nguyen
Hi Michael, Thanks, do you know any document or manual talks about that like removing the .service extension as you said? I mean any proof to show it can work. Thanks again, Brs On Thu, Jun 9, 2016 at 4:13 PM, Michael Biebl wrote: > 2016-06-09 10:55 GMT+02:00 Bao Nguyen

Re: [systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

2016-06-09 Thread Michael Biebl
2016-06-09 10:55 GMT+02:00 Bao Nguyen : > Hi everyone, > > I have a script written by SysVinit, can I declare ordering of this script > with a systemd unit in "X-Start-Before:" and "X-Start-After:", for ex > > X-Start-Before: systemd_1.service > X-Start-After: systemd_2.service >

Re: [systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

2016-06-09 Thread Reindl Harald
Am 09.06.2016 um 10:55 schrieb Bao Nguyen: Hi everyone, I have a script written by SysVinit, can I declare ordering of this script with a systemd unit in "X-Start-Before:" and "X-Start-After:", for ex X-Start-Before: systemd_1.service X-Start-After: systemd_2.service Can it be declared like

Re: [systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

2016-06-09 Thread Ross Lagerwall
On Thu, Jun 9, 2016 at 9:55 AM, Bao Nguyen wrote: > Hi everyone, > > I have a script written by SysVinit, can I declare ordering of this script > with a systemd unit in "X-Start-Before:" and "X-Start-After:", for ex > > X-Start-Before: systemd_1.service > X-Start-After:

[systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

2016-06-09 Thread Bao Nguyen
Hi everyone, I have a script written by SysVinit, can I declare ordering of this script with a systemd unit in "X-Start-Before:" and "X-Start-After:", for ex X-Start-Before: systemd_1.service X-Start-After: systemd_2.service Can it be declared like that? Can it work as expected if LSB depends