warik

Untitled

Aug 8th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. [Unit]
  2. Description=Majordomo cycles
  3. Requires=network.target mysql.service apache2.service
  4. After=dhcpcd.service mysql.service apache2.service
  5.  
  6. [Service]
  7. Type=simple
  8. User=www-data
  9. Group=www-data
  10. ExecStart=/usr/bin/php /var/www/cycle.php
  11. ExecStop=/usr/bin/pkill -f cycle_*
  12.  
  13. KillSignal=SIGKILL
  14. KillMode=control-group
  15. RestartSec=1min
  16. Restart=on-failure
  17.  
  18. [Install]
  19. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment