diff options
author | Maxim Devaev <[email protected]> | 2024-09-11 20:22:49 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-09-11 20:22:49 +0300 |
commit | 56da910ebe9dc0ec496b8a0e7e9b89c5d531f7a4 (patch) | |
tree | 6fbc4221fff8f9519316bdf3e4e78bf04d9e690f /configs/os/services/kvmd-oled-shutdown.service | |
parent | 40393acf67ff9421d94604284d37a560f8f7e711 (diff) |
moved kvmd-oled to this repo
Diffstat (limited to 'configs/os/services/kvmd-oled-shutdown.service')
-rw-r--r-- | configs/os/services/kvmd-oled-shutdown.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configs/os/services/kvmd-oled-shutdown.service b/configs/os/services/kvmd-oled-shutdown.service new file mode 100644 index 00000000..61d94c51 --- /dev/null +++ b/configs/os/services/kvmd-oled-shutdown.service @@ -0,0 +1,14 @@ +[Unit] +Description=PiKVM - Display shutdown message on the OLED +Conflicts=reboot.target +Before=shutdown.target poweroff.target halt.target +DefaultDependencies=no + +[Service] +Type=oneshot +ExecStart=/bin/bash -c "kill -USR2 `systemctl show -P MainPID kvmd-oled`" +ExecStop=/bin/true +RemainAfterExit=yes + +[Install] +WantedBy=shutdown.target |