Commit 60d8e25d authored by Yadd's avatar Yadd
Browse files

Use native tmpfiles.d for systemd (#969)

parent 9088aa44
[Unit]
Description=FastCGI server for Lemonldap::NG websso system
After=network.target
Documentation=http://lemonldap-ng.org/documentation/latest/fastcgiserver
[Service]
Type=forking
EnvironmentFile=/etc/default/lemonldap-ng-fastcgi-server
PIDFile=/var/run/llng-fastcgi-server/llng-fastcgi-server.pid
ExecStartPre=-/bin/mkdir /var/run/llng-fastcgi-server
ExecStartPre=/bin/chown www-data:www-data /var/run/llng-fastcgi-server
ExecStart=/usr/sbin/llng-fastcgi-server
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile ${PID}
KillMode=mixed
......
d /run/llng-fastcgi-server 0755 www-data www-data - -
......@@ -11,3 +11,5 @@ liblemonldap-ng-common-perl: non-standard-file-perm var/lib/lemonldap-ng/conf/lm
# directory, so it must not be readable by all but must be writable by www-data
liblemonldap-ng-common-perl: non-standard-dir-perm var/lib/lemonldap-ng/sessions/ 0770 != 0755
liblemonldap-ng-common-perl: non-standard-dir-perm var/lib/lemonldap-ng/sessions/lock/ 0770 != 0755
liblemonldap-ng-common-perl: non-standard-dir-perm var/lib/lemonldap-ng/psessions/ 0770 != 0755
liblemonldap-ng-common-perl: non-standard-dir-perm var/lib/lemonldap-ng/psessions/lock/ 0770 != 0755
......@@ -6,8 +6,6 @@ After=network.target
Type=forking
EnvironmentFile=/etc/default/llng-fastcgi-server
PIDFile=__FASTCGISOCKDIR__/llng-fastcgi-server.pid
ExecStartPre=-/bin/mkdir __FASTCGISOCKDIR__
ExecStartPre=/bin/chown __USER__:__GROUP__ __FASTCGISOCKDIR__
ExecStart=__SBINDIR__/llng-fastcgi-server
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile ${PID}
KillMode=mixed
......
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