summaryrefslogtreecommitdiffstats
path: root/roles/lists/files/lib/systemd/system
diff options
context:
space:
mode:
Diffstat (limited to 'roles/lists/files/lib/systemd/system')
-rw-r--r--roles/lists/files/lib/systemd/system/wwsympa.service14
-rw-r--r--roles/lists/files/lib/systemd/system/wwsympa.socket11
2 files changed, 25 insertions, 0 deletions
diff --git a/roles/lists/files/lib/systemd/system/wwsympa.service b/roles/lists/files/lib/systemd/system/wwsympa.service
new file mode 100644
index 0000000..ea2a78f
--- /dev/null
+++ b/roles/lists/files/lib/systemd/system/wwsympa.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=WWSympa Service
+After=network.target
+PartOf=sympa.service
+Requires=wwsympa.socket
+
+[Service]
+StandardInput=socket
+User=sympa
+Group=sympa
+ExecStart=/usr/lib/cgi-bin/sympa/wwsympa.fcgi
+
+[Install]
+WantedBy=multi-user.target
diff --git a/roles/lists/files/lib/systemd/system/wwsympa.socket b/roles/lists/files/lib/systemd/system/wwsympa.socket
new file mode 100644
index 0000000..10fe721
--- /dev/null
+++ b/roles/lists/files/lib/systemd/system/wwsympa.socket
@@ -0,0 +1,11 @@
+[Unit]
+Description=WWSympa Listen Socket
+
+[Socket]
+SocketUser=www-data
+SocketGroup=www-data
+SocketMode=0600
+ListenStream=/run/wwsympa.socket
+
+[Install]
+WantedBy=sockets.target