Files
ansible/roles/wake_on_lan/files/pre-shutdown.service
T
2026-09-17 00:36:31 +02:00

13 lines
260 B
Desktop File

[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