Created
April 19, 2023 02:03
-
-
Save acidjazz/88718cd488963f2ab7964bbe973a1c0e to your computer and use it in GitHub Desktop.
cloudinit horizon
This file contains 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
# setup horizon with systemd | |
echo " | |
[Unit] | |
Description=Laravel Horizon Queue Manager | |
After=network.target auditd.service | |
[Service] | |
ExecStart=/bin/php /home/ec2-user/bob/artisan horizon | |
Restart=always | |
User=ec2-user | |
Group=ec2-user | |
[Install] | |
WantedBy=multi-user.target | |
" > /lib/systemd/system/horizon.service | |
systemctl enable horizon.service | |
systemctl start horizon.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment