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
|
From: =?utf-8?q?Guido_G=C3=BCnther?= <agx@sigxcpu.org>
Date: Mon, 10 Mar 2025 13:50:39 +0100
Subject: Use service specific user and directory
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
contrib/systemd/osmo-cbc.service | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/contrib/systemd/osmo-cbc.service b/contrib/systemd/osmo-cbc.service
index fb01039..56c7878 100644
--- a/contrib/systemd/osmo-cbc.service
+++ b/contrib/systemd/osmo-cbc.service
@@ -5,11 +5,11 @@ Wants=network-online.target
[Service]
Type=simple
-StateDirectory=osmocom
-WorkingDirectory=%S/osmocom
+StateDirectory=osmo-cbc
+WorkingDirectory=%S/osmo-cbc
Restart=always
-User=osmocom
-Group=osmocom
+User=osmo-cbc
+Group=osmo-cbc
ExecStart=/usr/bin/osmo-cbc -c /etc/osmocom/osmo-cbc.cfg
RestartSec=2
|