This commit is contained in:
Marc Beninca 2019-09-01 22:18:28 +02:00
parent e10c268316
commit e0bc823054
2 changed files with 42 additions and 0 deletions

View file

@ -15,6 +15,7 @@ RTFD
public/debootstrap/index public/debootstrap/index
public/dns/index public/dns/index
public/docker/index public/docker/index
public/fcgiwrap/index
public/ffmpeg/index public/ffmpeg/index
public/firefox/index public/firefox/index
public/git/index public/git/index

View file

@ -0,0 +1,41 @@
fcgiwrap
========
.. todo:: mandatory parameters
Configure socket
----------------
.. code:: ini
[Unit]
Description=fcgiwrap socket
[Socket]
SocketMode=0600
SocketUser=www-data
SocketGroup=www-data
ListenStream=/run/fcgiwrap.socket
[Install]
WantedBy=sockets.target
Configure service
-----------------
.. code:: ini
[Unit]
Description=simple cgi server
After=nss-user-lookup.target
Requires=fcgiwrap.socket
[Service]
Environment=DAEMON_OPTS=-f
EnvironmentFile=-/etc/default/fcgiwrap
ExecStart=/usr/sbin/fcgiwrap ${DAEMON_OPTS}
User=www-data
Group=www-data
[Install]
Also=fcgiwrap.socket