1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
[Install]
WantedBy=multi-user.target
[Unit]
Description=Weborf auth daemon
[Service]
InaccessiblePaths=/var
InaccessiblePaths=-/srv
ProtectSystem=strict
ProtectHome=true
PrivateDevices=true
PrivateUsers=true
NoNewPrivileges=true
RestrictAddressFamilies=AF_UNIX
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
PrivateTmp=true
Type=simple
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=weborf_auth
ExecStart=/usr/local/bin/auth.py
RuntimeDirectory=weborf
User=www-data
Group=www-data
|