From 5d58e4d1f92931956496b001b2dd31906ae69769 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 2 Apr 2022 19:04:37 +0400 Subject: [PATCH] This service doesn't need its own user, dynamic would be sufficient. --- build/dwelling-radio.conf | 4 ---- init/systemd/dwelling-radio.service | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 build/dwelling-radio.conf diff --git a/build/dwelling-radio.conf b/build/dwelling-radio.conf deleted file mode 100644 index 2573f04..0000000 --- a/build/dwelling-radio.conf +++ /dev/null @@ -1,4 +0,0 @@ -# sysusers.d -g dwradio - - -u dwradio - - -m dwradio dwradio \ No newline at end of file diff --git a/init/systemd/dwelling-radio.service b/init/systemd/dwelling-radio.service index 009b7de..857424e 100755 --- a/init/systemd/dwelling-radio.service +++ b/init/systemd/dwelling-radio.service @@ -5,8 +5,7 @@ After=network-online.target [Service] Type=simple Restart=on-failure -User=dwradio -Group=dwradio +DynamicUser=yes ExecStart=/usr/bin/dwelling-radio -conf /etc/dwelling/radio.yaml ReadOnlyPaths=/