From e0bc82305488f1159c26a01a0a1da485cddcefae Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 1 Sep 2019 22:18:28 +0200 Subject: [PATCH] fcgiwrap --- docs/index.rst | 1 + docs/public/fcgiwrap/index.rst | 41 ++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 docs/public/fcgiwrap/index.rst diff --git a/docs/index.rst b/docs/index.rst index 652071a..7d8c27c 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -15,6 +15,7 @@ RTFD public/debootstrap/index public/dns/index public/docker/index + public/fcgiwrap/index public/ffmpeg/index public/firefox/index public/git/index diff --git a/docs/public/fcgiwrap/index.rst b/docs/public/fcgiwrap/index.rst new file mode 100644 index 0000000..e0d9258 --- /dev/null +++ b/docs/public/fcgiwrap/index.rst @@ -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