summarylogtreecommitdiffstats
path: root/writefreely.service
blob: e43b812e16521166cd3f6fa9570908676c9aa4a9 (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=Write Freely
After=syslog.target
After=network.target
After=mysqld.service
After=mariadb.service

[Service]
User=writefreely
Group=writefreely
Type=simple
WorkingDirectory=/var/lib/writefreely
ExecStart=/usr/bin/writefreely -c /etc/writefreely/config.ini
Restart=always
RestartSec=2s
CapabilityBoundingSet=
NoNewPrivileges=true
PrivateUsers=true
PrivateDevices=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
ProtectControlGroups=yes
ProtectKernelTunables=true
ProtectKernelModules=yes
ReadWritePaths=/var/lib/writefreely
LockPersonality=true
MemoryDenyWriteExecute=true
RestrictRealtime=true
SystemCallArchitectures=native
SystemCallFilter=@system-service

[Install]
WantedBy=multi-user.target