Advertisement
Guest User

Untitled

a guest
May 26th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. [Unit]
  2. Description=Play2 Server for <site>
  3. After=network.target
  4.  
  5. [Service]
  6. Type=simple
  7. PIDFile=<path>/RUNNING_PID
  8.  
  9. ExecStartPre=[ -e <path>/RUNNING_PID ] && rm <path>/RUNNING_PID
  10. ExecStart=<path>/bin/server
  11. ExecStop=/bin/kill $MAINPID
  12. ExecStopPost=[ -e <path>/RUNNING_PID ] && rm <path>/RUNNING_PID
  13. ExecRestart=/bin/kill $MAINPID
  14. Restart=true
  15.  
  16. [Install]
  17. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement