summaryrefslogtreecommitdiff
path: root/examples/dserver.service.example
blob: f299025c364bf69ead81b09f742c98f6ed6043ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Installs disabled by default: do not run `systemctl enable dserver` unless you
# want it at boot. Start manually with: sudo systemctl start dserver
[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