Re: [systemd-devel] proper way for shutdown script

2016-10-07 Thread Xen
Kai Krakow schreef op 07-10-2016 9:40: Am Wed, 05 Oct 2016 14:40:52 +0200 schrieb Xen : Xen schreef op 05-10-2016 14:37: > And this works. But now the service must be started first before it > will be called on shutdown... :-/. I guess the package installer would have to

Re: [systemd-devel] proper way for shutdown script

2016-10-07 Thread Lennart Poettering
On Thu, 06.10.16 20:30, Xen (l...@xenhideout.nl) wrote: > Lennart Poettering schreef op 06-10-2016 19:12: > > >The way to have a process executed at shutdown is by using ExecStop= > >and making sure the unit is started at start-up time. > > > >Current systemd versions permit unit files without

Re: [systemd-devel] proper way for shutdown script

2016-10-07 Thread Kai Krakow
Am Wed, 05 Oct 2016 14:40:52 +0200 schrieb Xen : > Xen schreef op 05-10-2016 14:37: > > > And this works. But now the service must be started first before it > > will be called on shutdown... :-/. > > I guess the package installer would have to start the service after >

Re: [systemd-devel] proper way for shutdown script

2016-10-06 Thread Xen
Lennart Poettering schreef op 06-10-2016 19:12: The way to have a process executed at shutdown is by using ExecStop= and making sure the unit is started at start-up time. Current systemd versions permit unit files without any ExecStart= to cover for this case, really old systemd versions

Re: [systemd-devel] proper way for shutdown script

2016-10-06 Thread Lennart Poettering
On Wed, 05.10.16 18:01, Xen (l...@xenhideout.nl) wrote: > Lennart Poettering schreef op 05-10-2016 14:52: > > >>nss_initgroups_ignoreusers >

Re: [systemd-devel] proper way for shutdown script

2016-10-05 Thread Xen
Mantas Mikulėnas schreef op 05-10-2016 18:34: If you mean "would not perform lookups _below_ a certain ID", then sure, that exists. In /etc/nslcd.conf you can specify "nss_min_uid 1000", for example, to avoid lookups for all system UIDs. Thank you. It seems interesting. I just think that they

Re: [systemd-devel] proper way for shutdown script

2016-10-05 Thread Mantas Mikulėnas
On Wed, Oct 5, 2016 at 7:08 PM, Xen wrote: > Mantas Mikulėnas schreef op 05-10-2016 14:49: > >> On Wed, Oct 5, 2016 at 1:47 PM, Xen wrote: >> >> Hi, >>> >>> the libnss-ldap package on my system used to contain (and still >>> contains) a script that is run

Re: [systemd-devel] proper way for shutdown script

2016-10-05 Thread Xen
Mantas Mikulėnas schreef op 05-10-2016 14:49: On Wed, Oct 5, 2016 at 1:47 PM, Xen wrote: Hi, the libnss-ldap package on my system used to contain (and still contains) a script that is run on system reboot and shutdown and installs itself into SysV directories for runlevel

Re: [systemd-devel] proper way for shutdown script

2016-10-05 Thread Xen
Lennart Poettering schreef op 05-10-2016 14:52: nss_initgroups_ignoreusers

Re: [systemd-devel] proper way for shutdown script

2016-10-05 Thread Lennart Poettering
On Wed, 05.10.16 14:40, Xen (l...@xenhideout.nl) wrote: > Xen schreef op 05-10-2016 14:37: > > >And this works. But now the service must be started first before it > >will be called on shutdown... :-/. > > I guess the package installer would have to start the service after > installation which

Re: [systemd-devel] proper way for shutdown script

2016-10-05 Thread Mantas Mikulėnas
On Wed, Oct 5, 2016 at 1:47 PM, Xen wrote: > Hi, > > the libnss-ldap package on my system used to contain (and still contains) > a script that is run on system reboot and shutdown and installs itself into > SysV directories for runlevel 0 and 6. > Do you mean libnss-ldapd?

Re: [systemd-devel] proper way for shutdown script

2016-10-05 Thread Lennart Poettering
On Wed, 05.10.16 14:37, Xen (l...@xenhideout.nl) wrote: > Lennart Poettering schreef op 05-10-2016 13:16: > > >Why does nss-ldap require something like this? Sounds strange to me... > > Thanks man. I was just gonna charge you $40 for missed time... ;-). > > There are services during startup

Re: [systemd-devel] proper way for shutdown script

2016-10-05 Thread Xen
Xen schreef op 05-10-2016 14:37: And this works. But now the service must be started first before it will be called on shutdown... :-/. I guess the package installer would have to start the service after installation which would be a solution in that sense, it needs to enable the service

Re: [systemd-devel] proper way for shutdown script

2016-10-05 Thread Xen
Lennart Poettering schreef op 05-10-2016 13:16: Why does nss-ldap require something like this? Sounds strange to me... Thanks man. I was just gonna charge you $40 for missed time... ;-). There are services during startup that are going to hang if you configure nsswitch.conf to also use ldap

Re: [systemd-devel] proper way for shutdown script

2016-10-05 Thread Lennart Poettering
On Wed, 05.10.16 12:47, Xen (l...@xenhideout.nl) wrote: > Hi, > > the libnss-ldap package on my system used to contain (and still contains) a > script that is run on system reboot and shutdown and installs itself into > SysV directories for runlevel 0 and 6. > > However on SystemD I believe

[systemd-devel] proper way for shutdown script

2016-10-05 Thread Xen
Hi, the libnss-ldap package on my system used to contain (and still contains) a script that is run on system reboot and shutdown and installs itself into SysV directories for runlevel 0 and 6. However on SystemD I believe these are not run? What would be the proper way to run them?