Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- [Unit]
- Description=LinuxGSM Minecraft Server
- After=network-online.target
- Wants=network-online.target
- [Service]
- Type=forking
- User=server
- WorkingDirectory=/home/server
- #Assume that the service is running after main process exits with code 0
- RemainAfterExit=yes
- ExecStart=/bin/bash /home/server/serverfiles/run.sh
- ExecStop=,/mcserver stop
- Restart=no
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement