Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@smart:~# cat /etc/systemd/system/majordomo.service
- [Unit]
- Description=Majordomo cycles
- Requires=network.target mysql.service apache2.service
- After=dhcpcd.service mysql.service apache2.service
- [Service]
- Type=simple
- User=majordomo
- ExecStart=/usr/bin/php /PATH/TO/MD/cycle.php
- ExecStop=/usr/bin/pkill -f cycle_*
- KillSignal=SIGKILL
- KillMode=control-group
- RestartSec=1min
- #Restart=on-failure
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement