From 7bc2193d09fe3dbbe641b3485d3ad6eaf7792526 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 25 Oct 2025 23:40:03 -0600 Subject: [PATCH] fix(systemd): don't use system-only values for user unit --- .../dist/etc/skel/.config/systemd/user/telebit.service.tpl | 7 ++++--- usr/share/dist/etc/systemd/system/telebit.service.tpl | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/usr/share/dist/etc/skel/.config/systemd/user/telebit.service.tpl b/usr/share/dist/etc/skel/.config/systemd/user/telebit.service.tpl index 45da0ea..4737048 100644 --- a/usr/share/dist/etc/skel/.config/systemd/user/telebit.service.tpl +++ b/usr/share/dist/etc/skel/.config/systemd/user/telebit.service.tpl @@ -34,9 +34,9 @@ ExecReload=/bin/kill -USR1 $MAINPID # Use private /tmp and /var/tmp, which are discarded after this stops. PrivateTmp=true # Use a minimal /dev -;PrivateDevices=true +PrivateDevices=true # Hide /home, /root, and /run/user. Nobody will steal your SSH-keys. -ProtectHome=true +;ProtectHome=true # Make /usr, /boot, /etc and possibly some more folders read-only. ProtectSystem=full # ... except for a few because we want a place for config, logs, etc @@ -61,4 +61,5 @@ NoNewPrivileges=true ; NoNewPrivileges=true [Install] -WantedBy=multi-user.target +# For userspace service +WantedBy=default.target diff --git a/usr/share/dist/etc/systemd/system/telebit.service.tpl b/usr/share/dist/etc/systemd/system/telebit.service.tpl index 3f61e1e..e63f87e 100644 --- a/usr/share/dist/etc/systemd/system/telebit.service.tpl +++ b/usr/share/dist/etc/systemd/system/telebit.service.tpl @@ -62,6 +62,6 @@ NoNewPrivileges=true [Install] # For system-level service -;WantedBy=multi-user.target +WantedBy=multi-user.target # For userspace service -WantedBy=default.target +;WantedBy=default.target