Guest User

Untitled

a guest
Feb 26th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $ cat /etc/systemd/system/sopds_server.service
  2.  
  3. [Unit]
  4. Description=SOPDS WEB Server
  5. After=network.target
  6.  
  7. [Service]
  8. Type=simple
  9. ExecStart=/opt/sopds/manage.py sopds_server start --daemon
  10. Restart=always
  11. PIDFile=/tmp/sopds-http.pid
  12. ExecStop=/opt/sopds/manage.py sopds_server stop --daemon
  13. RestartSec=300
  14. Restart=always
  15.  
  16. [Install]
  17. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment