summarylogtreecommitdiffstats
path: root/minecraftd.service
diff options
context:
space:
mode:
Diffstat (limited to 'minecraftd.service')
-rw-r--r--minecraftd.service13
1 files changed, 5 insertions, 8 deletions
diff --git a/minecraftd.service b/minecraftd.service
index d649d633d61..17e18af411e 100644
--- a/minecraftd.service
+++ b/minecraftd.service
@@ -1,14 +1,11 @@
[Unit]
-Description=Minecraft server daemon
-After=network.target
+Description=Minecraft Server
+After=local-fs.target network.target
[Service]
-User=minecraft
-Group=minecraft
-ExecStart=/usr/bin/minecraftd
-Type=oneshot
-RemainAfterExit=yes
-ExecStop=/usr/bin/screen -S minecraft -X stuff 'say Server Shutting Down in 5 Seconds\n' ; /usr/bin/sleep 5 ; /usr/bin/screen -S minecraft -X stuff 'stop\n' ; /usr/bin/expect -c "exec screen -x minecraft ; wait ; exit"
+Type=forking
+ExecStart=/usr/bin/minecraftd start
+ExecStop=/usr/bin/minecraftd stop
[Install]
WantedBy=multi-user.target