summarylogtreecommitdiffstats
path: root/writefreely.service
blob: 659a81944b66c8e06fb61f29a72b2ef42e3fdd65 (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 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