linuxShortcuts/Services/minecraft-stop.service

13 lines
250 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Properly shutdown Minecraft before PC shutdown
2021-03-05 15:23:27 +00:00
OnFailure=logErrors@%n.service
[Service]
Type=oneshot
RemainAfterExit=true
User=bruno
ExecStop=/bin/sh /home/bruno/Apps/Minecraft/stopServers.sh
[Install]
WantedBy=multi-user.target