added systemd service file

just put msm.service in /etc/systemd/system/ and make sure you have msm
accessible via /usr/local/bin

enable:  systemctl enable msm.service
disable: systemctl disable msm.service
start:   systemctl start msm.service
stop:    systemctl stop msm.service
This commit is contained in:
Max Bruckner 2013-10-03 14:52:53 +02:00
parent f3981cf6d4
commit 44af5bd8f5

15
init/msm.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=Minecraft Server Manager
Requires=network.target
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/local/bin/msm start
ExecStop=/usr/local/bin/msm stop
ExecReload=/usr/local/bin/msm restart
[Install]
WantedBy=multi-user.target