Add a SystemD service file

This commit is contained in:
Jason M. Wood 2015-03-03 19:37:17 -07:00
parent 5cc04078ed
commit c95ae9f04f

15
mscs.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=Minecraft Server Control Script
Documentation=https://github.com/sandain/MinecraftServerControlScript
Requires=network.target
After=network.target
[Service]
ExecStart=/usr/bin/mscs start
ExecStop=/usr/bin/mscs stop
ExecReload=/usr/bin/mscs restart
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target