Re: [systemd-devel] Running a script as FIRST script before shutdown

2015-09-24 Thread Mantas Mikulėnas
On Thu, Sep 24, 2015, 09:40 Luca Bertoncello wrote: > Hi Lennart, > > thank you for your answer! > > > There is no concept of "first" or "last" in systemd, since it's not > clear what > > that's supposed to mean if there are multiple, and what happens if some > >

Re: [systemd-devel] Running a script as FIRST script before shutdown

2015-09-24 Thread Andrei Borzenkov
On Thu, Sep 24, 2015 at 10:41 AM, Luca Bertoncello wrote: > Hi Andrei, > > > Try RequiresMountsFor=/run/whatever > > Not enough... > Currently I have: > > [Unit] > Description=TEST - oVirt interface for managing host > After=local-fs.target network.target

Re: [systemd-devel] Running a script as FIRST script before shutdown

2015-09-24 Thread Luca Bertoncello
> > But on Shutdown the system first stops other services and umount /run, > and then call my script... > > /run is API mount and systemd should not be unmounting it at all. Do you > have any chance to run serial or net console so you can capture output at > shutdown? Unfortunately not... I can

Re: [systemd-devel] Running a script as FIRST script before shutdown

2015-09-24 Thread Luca Bertoncello
Hi Lennart, thank you for your answer! > There is no concept of "first" or "last" in systemd, since it's not clear what > that's supposed to mean if there are multiple, and what happens if some > operation results in activation? That's bad... :) > Hence, simply order your service against the

Re: [systemd-devel] Running a script as FIRST script before shutdown

2015-09-24 Thread Andrei Borzenkov
On Thu, Sep 24, 2015 at 9:40 AM, Luca Bertoncello wrote: > > Well, this is what I tried for more the three days... :( > I know, that the script need at least vdsmd.service, vdsm-network.service and > libvirtd.service. > But it needs that the tmpfs-partition /run is

Re: [systemd-devel] Running a script as FIRST script before shutdown

2015-09-24 Thread Lennart Poettering
On Thu, 24.09.15 09:41, Luca Bertoncello (l.bertonce...@queo-group.com) wrote: > Hi Andrei, > > > Try RequiresMountsFor=/run/whatever > > Not enough... > Currently I have: > > [Unit] > Description=TEST - oVirt interface for managing host > After=local-fs.target network.target vdsmd.service

Re: [systemd-devel] Running a script as FIRST script before shutdown

2015-09-24 Thread Lennart Poettering
On Thu, 24.09.15 08:40, Luca Bertoncello (l.bertonce...@queo-group.com) wrote: > Hi Lennart, > > thank you for your answer! > > > There is no concept of "first" or "last" in systemd, since it's not clear > > what > > that's supposed to mean if there are multiple, and what happens if some > >

[systemd-devel] Running a script as FIRST script before shutdown

2015-09-23 Thread Luca Bertoncello
Hi list! I'm new here and I hope, I'm in topic... I don't want to develop system, but I didn't found a "system-user"-ML... So, to my problem: I need a possibility to call a script on shutdown/reboot/halt (I use CentOS 7). This **MUST** be the first one be called, since it needs many other

Re: [systemd-devel] Running a script as FIRST script before shutdown

2015-09-23 Thread Lennart Poettering
On Wed, 23.09.15 16:20, Luca Bertoncello (l.bertonce...@queo-group.com) wrote: > Hi list! > > I'm new here and I hope, I'm in topic... I don't want to develop system, but > I didn't found a "system-user"-ML... > > So, to my problem: > I need a possibility to call a script on

Re: [systemd-devel] Running a script as FIRST script before shutdown

2015-09-23 Thread Mantas Mikulėnas
On Wed, Sep 23, 2015 at 5:20 PM, Luca Bertoncello < l.bertonce...@queo-group.com> wrote: > Hi list! > > I'm new here and I hope, I'm in topic... I don't want to develop system, > but I didn't found a "system-user"-ML... > Yeah, systemd-devel is still also the tech support list. > So, to my