diff --git a/pymc-repeater.service b/pymc-repeater.service index 0104df8..cc7715d 100644 --- a/pymc-repeater.service +++ b/pymc-repeater.service @@ -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]