summarylogtreecommitdiffstats
path: root/librefang.service
blob: edba6ecbfb53e8cddcbfa0c5747fe237513910fe (plain)
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
33
34
[Unit]
Description=LibreFang Agent OS Daemon
Documentation=https://github.com/librefang/librefang
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=librefang
Group=librefang
ExecStart=/usr/bin/librefang start
Restart=on-failure
RestartSec=5
TimeoutStopSec=30

# Environment
EnvironmentFile=-/etc/librefang/env
WorkingDirectory=/var/lib/librefang

# Security hardening
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/librefang
PrivateTmp=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictSUIDSGID=true
MemoryDenyWriteExecute=false
RestrictRealtime=true

[Install]
WantedBy=multi-user.target