updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / minecraft-canary / minecraftd.service
blobc90a1211f16e25bbf38669a89a01ddb81f7ba199
1 [Unit]
2 Description=CanaryMod server daemon
3 After=network.target
5 [Service]
6 ExecStart=/usr/bin/minecraftd
7 Type=oneshot
8 RemainAfterExit=yes
9 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"
11 [Install]
12 WantedBy=multi-user.target