This commit is contained in:
2026-09-17 00:36:31 +02:00
parent 8efcc9eac6
commit 6e5b63a3ad
13 changed files with 320 additions and 0 deletions
@@ -0,0 +1,13 @@
[Unit]
Description=Run command before shutdown
DefaultDependencies=no
Before=shutdown.target reboot.target halt.target
[Service]
Type=oneshot
ExecStart=/bin/true
ExecStop=/usr/local/bin/pre-shutdown.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target