summarylogtreecommitdiffstats
path: root/etherpad-lite.service
blob: 045404e006aa78954c7831e35e4b16cf8d87506e (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
35
36
37
38
39
40
41
42
43
[Unit]
Description=Etherpad-lite
Documentation=https://github.com/ether/etherpad-lite/wiki
After=syslog.target network.target

[Service]
CacheDirectory=etherpad-lite
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
ConfigurationDirectory=etherpad-lite
ExecStart=/usr/bin/node /usr/share/etherpad-lite/src/node/server.js --settings /etc/etherpad-lite/settings.json
Environment=NODE_ENV=production
Group=etherpad-lite
LogsDirectory=etherpad-lite
LockPersonality=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
ReadWritePaths=/etc/etherpad-lite/
RemoveIPC=true
Restart=always
RestrictAddressFamilies=~AF_PACKET AF_NETLINK
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@resources
SystemCallFilter=~@privileged
StateDirectory=etherpad-lite
User=etherpad-lite
WorkingDirectory=/usr/share/etherpad-lite

[Install]
WantedBy=multi-user.target