Skip to content

Instantly share code, notes, and snippets.

@schu
Created February 12, 2013 19:01
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 schu/4772355 to your computer and use it in GitHub Desktop.
Save schu/4772355 to your computer and use it in GitHub Desktop.
$ cat /etc/systemd/system/fcgiwrap.service
[Unit]
Description=fcgiwrap Server
After=nss-user-lookup.target
[Service]
ExecStart=/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9001 -u http -g http -- /usr/sbin/fcgiwrap
ExecStartPost=/usr/bin/chmod 660 /run/fcgiwrap.sock
Restart=on-failure
Type=forking
[Install]
WantedBy=multi-user.target
$ cat /etc/systemd/system/fcgiwrap.socket
[Unit]
Description=fcgiwrap Socket
[Socket]
ListenStream=/run/fcgiwrap.sock
[Install]
WantedBy=sockets.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment