Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. root@smart:~# cat /etc/systemd/system/majordomo.service
  2. [Unit]
  3. Description=Majordomo cycles
  4. Requires=network.target mysql.service apache2.service
  5. After=dhcpcd.service mysql.service apache2.service
  6.  
  7. [Service]
  8. Type=simple
  9. User=majordomo
  10. ExecStart=/usr/bin/php /PATH/TO/MD/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
Advertisement