summaryrefslogtreecommitdiff
path: root/roles/whawty/auth/app/templates/systemd.service.j2
blob: 875d692eac77bbfb5018234563f8e70b91b47243 (plain) (blame)
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
29
30
31
32
{% set whawty_auth_store = whawty_auth_store_instances[whawty_auth_app.config.store] %}
[Unit]
Description=whawty.auth authentication agent for {{ whawty_auth_app.name }}

[Service]
Type=simple
ExecStart=/usr/bin/whawty-auth --store "/etc/whawty/auth/store-{{ whawty_auth_app.config.store }}.yml" runsa
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=3

AmbientCapabilities=
CapabilityBoundingSet=
DeviceAllow=/dev/null rw
DevicePolicy=strict
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
{% if 'sync' not in whawty_auth_store or whawty_auth_store.sync.type != 'client' %}
ReadWritePaths={{ whawty_auth_store.config.basedir }}
{% endif %}
RemoveIPC=true
RestrictNamespaces=true
RestrictRealtime=true
SystemCallArchitectures=native