aboutsummaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2012-08-21 08:13:52 -0400
committerFurkan Sahin <furkan-dev@proton.me>2012-08-21 08:13:52 -0400
commita0d0d1d6e7c5adf109895d727b3ec190e652c8de (patch)
tree13957856c3125301f3967d8a2cf81c2711c33c20 /systemd
parent2bf8dc712b62a026cb07600d1c551946fc653d7c (diff)
add systemd unit files for installation
These are automatically installed iff systemd support is compiled into fcgiwrap.
Diffstat (limited to 'systemd')
-rw-r--r--systemd/fcgiwrap.service11
-rw-r--r--systemd/fcgiwrap.socket8
2 files changed, 19 insertions, 0 deletions
diff --git a/systemd/fcgiwrap.service b/systemd/fcgiwrap.service
new file mode 100644
index 0000000..7b010c9
--- /dev/null
+++ b/systemd/fcgiwrap.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Simple CGI Server
+After=nss-user-lookup.target
+
+[Service]
+ExecStart=/usr/sbin/fcgiwrap
+User=http
+Group=http
+
+[Install]
+Also=fcgiwrap.socket
diff --git a/systemd/fcgiwrap.socket b/systemd/fcgiwrap.socket
new file mode 100644
index 0000000..dc074f1
--- /dev/null
+++ b/systemd/fcgiwrap.socket
@@ -0,0 +1,8 @@
+[Unit]
+Description=fcgiwrap Socket
+
+[Socket]
+ListenStream=/run/fcgiwrap.sock
+
+[Install]
+WantedBy=sockets.target