diff --git a/upcheck.service b/upcheck.service index d37247e..7daa5dd 100644 --- a/upcheck.service +++ b/upcheck.service @@ -1,12 +1,13 @@ [Unit] - Description=Automatically check updates and send notifications via libnotify + Description=Automatically check updates and send notifications via notify-rust After=network-online.target + ConditionUser=!root [Service] - Type=simple + Type=oneshot ExecStart=/usr/bin/upcheck KillMode=process KillSignal=SIGINT [Install] - WantedBy=multi-user.target + WantedBy=default.target diff --git a/upcheck.timer b/upcheck.timer index 3b62257..f74dfbd 100644 --- a/upcheck.timer +++ b/upcheck.timer @@ -1,5 +1,5 @@ [Unit] - Description=Check for ArchLinux available updates every 1.5 hours. + Description=Check for ArchLinux available updates according to OnUnitActiveSec= time, default 1h 30min. [Timer] OnBootSec=10min