summaryrefslogtreecommitdiff
path: root/examples/dserver.service.example
blob: c5e5e59d28c8c38f663bd8bc8dfaa8ff04dadcce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=DTail server
After=network.target

[Service]
Slice=dserver.slice
User=dserver
Group=dserver
ExecStart=/usr/local/bin/dserver -cfg /etc/dserver/dtail.json
WorkingDirectory=/var/run/dserver
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
CPUAccounting=true
MemoryAccounting=true
BlockIOAccounting=true

[Install]
WantedBy=multi-user.target