mirror of
https://github.com/edu4rdshl/upcheck.git
synced 2026-07-17 23:24:49 +00:00
Fix Dbus error when using the systemd service.
Before it commit you will get a error related to the Dbus activation because the service was trying to call it as root user but in a different session, the error is like 'Error(Dbus(D-Bus error: Server address of type unix was missing argument path or abstract (org.freedesktop.DBus.Error.BadAddress)'.
This commit is contained in:
parent
8802f64248
commit
ec818adc10
2 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue