mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2023-03-17 16:00
This commit is contained in:
38
roles/offen/templates/offen.service.j2
Normal file
38
roles/offen/templates/offen.service.j2
Normal file
@@ -0,0 +1,38 @@
|
||||
[Unit]
|
||||
Description=Offen Fair Web Analytics
|
||||
After=network.target postgresql.service mariadb.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
EnvironmentFile={{ offen_root_dir }}/etc/offen.conf
|
||||
User={{ offen_user }}
|
||||
ExecStart={{ offen_root_dir }}/bin/offen
|
||||
RuntimeDirectory=offen
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
Restart=always
|
||||
NoNewPrivileges=true
|
||||
PrivateDevices=true
|
||||
ProtectControlGroups=true
|
||||
ProtectHome=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectSystem=strict
|
||||
ProtectHostname=yes
|
||||
ProtectKernelLogs=yes
|
||||
ProtectClock=yes
|
||||
RestrictRealtime=true
|
||||
RestrictNamespaces=yes
|
||||
ReadWritePaths=/run
|
||||
PrivateTmp=true
|
||||
SystemCallArchitectures=native
|
||||
SystemCallFilter=@system-service
|
||||
SystemCallFilter=~@privileged
|
||||
SystemCallFilter=~@resources
|
||||
SystemCallErrorNumber=EPERM
|
||||
LockPersonality=yes
|
||||
MemoryDenyWriteExecute=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Reference in New Issue
Block a user