[systemd-devel] howto handle one time shutdown programs

Andreas Buschmann buschman at tech.net.de
Thu Jun 25 07:57:57 PDT 2015


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 program which does something to the
NVDIMM hardware.
After that no further access to the NVDIMMs is possible before the next
reboot of the server.

How should I handle that sort of logic with systemd?


					Mit freundlichen Gruessen
						Andreas Buschmann
-- 

Andreas Buschmann
[Senior Systems Engineer]

net.DE AG
Büttnerstraße 57
D-30165 Hannover 



More information about the systemd-devel mailing list