Skip to content

Instantly share code, notes, and snippets.

@acidjazz
Created April 19, 2023 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acidjazz/88718cd488963f2ab7964bbe973a1c0e to your computer and use it in GitHub Desktop.
Save acidjazz/88718cd488963f2ab7964bbe973a1c0e to your computer and use it in GitHub Desktop.
cloudinit horizon
# 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