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
commit14654b432c0a5494001af330c9d4cb7efaa535bf (patch)
treee782b38060766ac89d9dd24da143b9088a3f6909 /examples/dserver.service.example
parent294a4239831c2b2bda5933dde8a2ededf7eb476e (diff)
parent16b2ea0f93ebe8fbb8f3dea05d3fa60456513938 (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