Merge pull request #222 from zindello/bugfix/restart-issues

Fix up the CapabilityBoundingSet to allow changing the GID and UID as…
This commit is contained in:
Lloyd
2026-05-01 11:01:12 +01:00
committed by GitHub
+4 -3
View File
@@ -3,8 +3,9 @@
[Unit]
Description=pyMC Repeater Daemon
After=network-online.target
After=network-online.target dbus.socket
Wants=network-online.target
Requires=dbus.socket
[Service]
Type=simple
@@ -34,8 +35,8 @@ SyslogIdentifier=pymc-repeater
ReadWritePaths=/var/log/pymc_repeater /var/lib/pymc_repeater /etc/pymc_repeater
SupplementaryGroups=plugdev dialout
# Allow GPS time sync to update CLOCK_REALTIME without running as root
CapabilityBoundingSet=CAP_SYS_TIME
# Allow GPS time sync to update CLOCK_REALTIME without running as root, also allow changing user via polkit or sudo
CapabilityBoundingSet=CAP_SYS_TIME CAP_SETUID CAP_SETGID
AmbientCapabilities=CAP_SYS_TIME
[Install]