Commit 90fc3730 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Add unit/socket files to make use of multiwatch

parent 54c8b9be
......@@ -415,17 +415,6 @@ AC_ARG_WITH(
)
AC_SUBST(GROUP)
WEBSERVERUSER=nginx
AC_ARG_WITH(
[web_server_user],
AS_HELP_STRING(
[--with-web_server_user=LOGIN],
[set Web Server username @<:@nginx@:>@]
),
[WEBSERVERUSER="$withval"]
)
AC_SUBST(WEBSERVERUSER)
SENDMAIL_ALIASES=/etc/mail/sympa_aliases
AC_ARG_WITH(
[aliases_file],
......
......@@ -86,7 +86,6 @@ sympa: sympa.in Makefile
@rm -f $@
$(AM_V_GEN)$(SED) \
-e 's|--piddir--|$(piddir)|' \
-e 's|--WEBSERVERUSER--|$(WEBSERVERUSER)|' \
< $(srcdir)/$@in > $@
.confin.conf: Makefile
......
......@@ -13,8 +13,10 @@ StandardOutput=null
StandardInput=socket
StandardError=null
Environment="SOAP_FCGI_CHILDREN=2"
EnvironmentFile=-/etc/default/sympa
EnvironmentFile=-/etc/sysconfig/sympa
Restart=on-failure
Restart=always
RestartSec=5
[Install]
Also=sympasoap.socket
......
......@@ -2,9 +2,9 @@
Description=Sympa SOAP interface socket
[Socket]
SocketUser=--WEBSERVERUSER--
SocketUser=nobody
SocketMode=0600
ListenStream=/run/sympa/sympasoap.socket
ListenStream=--piddir--/sympasoap.socket
[Install]
WantedBy=sockets.target
......@@ -13,8 +13,10 @@ StandardOutput=null
StandardInput=socket
StandardError=null
Environment="WWS_FCGI_CHILDREN=5"
EnvironmentFile=-/etc/default/sympa
EnvironmentFile=-/etc/sysconfig/sympa
Restart=on-failure
Restart=always
RestartSec=5
[Install]
Also=wwsympa.socket
......
......@@ -2,9 +2,9 @@
Description=Sympa web interface socket
[Socket]
SocketUser=--WEBSERVERUSER--
SocketUser=nobody
SocketMode=0600
ListenStream=/run/sympa/wwsympa.socket
ListenStream=--piddir--/wwsympa.socket
[Install]
WantedBy=sockets.target
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment