summaryrefslogtreecommitdiff
path: root/examples/dserver.service.example
diff options
context:
space:
mode:
authorPaul Buetow <35781042+pbuetow@users.noreply.github.com>2023-06-22 21:27:14 +0300
committerGitHub <noreply@github.com>2023-06-22 21:27:14 +0300
commit17c2d07222c611411db17852dc81bf83562cb545 (patch)
treee782b38060766ac89d9dd24da143b9088a3f6909 /examples/dserver.service.example
parent42442a001c122a1cba010b4511fb1e989dea94d6 (diff)
parentff5832c38e14378e85ee484a473ab14f4615efb8 (diff)
Merge pull request #33 from snonux/master
Release v4.2.0
Diffstat (limited to 'examples/dserver.service.example')
-rw-r--r--examples/dserver.service.example19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/dserver.service.example b/examples/dserver.service.example
new file mode 100644
index 0000000..c5e5e59
--- /dev/null
+++ b/examples/dserver.service.example
@@ -0,0 +1,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