Comment on Writing systemd units that stop gracefully before shutdownparentComments−AnssiH3yThey need After=network.target, not Before=network.target.The shutdown order is the reverse of startup order, and they execute the payload on shutdown (ExecStop).
Comments
They need After=network.target, not Before=network.target.
The shutdown order is the reverse of startup order, and they execute the payload on shutdown (ExecStop).