fix(systemd): don't use system-only values for user unit

This commit is contained in:
AJ ONeal 2025-10-25 23:40:03 -06:00
parent f0049c7f06
commit 7bc2193d09
No known key found for this signature in database
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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