Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Unit]
- Description=Play2 Server for <site>
- After=network.target
- [Service]
- Type=simple
- PIDFile=<path>/RUNNING_PID
- ExecStartPre=[ -e <path>/RUNNING_PID ] && rm <path>/RUNNING_PID
- ExecStart=<path>/bin/server
- ExecStop=/bin/kill $MAINPID
- ExecStopPost=[ -e <path>/RUNNING_PID ] && rm <path>/RUNNING_PID
- ExecRestart=/bin/kill $MAINPID
- Restart=true
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement