mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 06:48:16 -07:00
Add a SystemD service file
This commit is contained in:
parent
5cc04078ed
commit
c95ae9f04f
15
mscs.service
Normal file
15
mscs.service
Normal 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
|
Loading…
Reference in New Issue
Block a user