Skip to content

Instantly share code, notes, and snippets.

@jfinstrom
Created August 15, 2018 17:07
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 jfinstrom/109605718b4d94b7e76250262047326c to your computer and use it in GitHub Desktop.
Save jfinstrom/109605718b4d94b7e76250262047326c to your computer and use it in GitHub Desktop.
fastagi systemd untested
[Unit]
Description=FastAGI Service
Requires=fastagi.socket
[Service]
Type=simple
ExecStart=/usr/bin/php /var/www/html/admin/libraries/fastagi.php
StandardInput=socket
StandardError=journal
TimeoutStopSec=5
[Install]
WantedBy=multi-user.target
[Unit]
Description=FastAGI Socket
[Socket]
ListenStream=127.0.0.1:4753
Accept=yes
SocketUser=asterisk
SocketGroup=asterisk
[Install]
WantedBy=sockets.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment