Hacker News new | ask | show | jobs
by AnssiH 1331 days ago
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).