From 44af5bd8f5914e3944a2851380349e078f53c621 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Thu, 3 Oct 2013 14:52:53 +0200 Subject: [PATCH] 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 --- init/msm.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 init/msm.service diff --git a/init/msm.service b/init/msm.service new file mode 100644 index 0000000..bfd297d --- /dev/null +++ b/init/msm.service @@ -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 +