Quote:
Originally Posted by nacheitor
I have created a file /lib/systemd/system/...
|
there's your first error there.
you should've created that file in /etc/systemd/system instead.
read the docs.
i also find your service file a little convoluted:
Code:
[Service]
Type=oneshot
ExecStart=/bin/true
RemainAfterExit=true
ExecStop=ping www.google.com
all this to keep the machine online during shutdown?
not sure what would be better, but this doesn't seem the right way.
why not simply create a service that runs upgrades on shutdown, before the network shuts down?
have you tried searching "systemd run updates during shutdown" or some such?
the problem you are seeing is that something else is shutting down important parts of the system/networking while your ping is running. could be DNS, could be sth else.