Created
July 26, 2017 09:03
-
-
Save mitchellurgero/e914c6109d0ad31fd85bf6d4dbb7e1f1 to your computer and use it in GitHub Desktop.
GNU Social Queue Daemon Systemd Unit File & cron
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crontab -e | |
Add: | |
0 0 * * * /bin/bash /root/restartqueue.sh | |
(Make sure to change for your setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
systemctl stop gnusocial.service | |
systemctl stop mysql.service | |
systemctl restart rabbitmq-server.service | |
systemctl restart apache2.service | |
systemctl start mysql.service | |
systemctl start gnusocial.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment