dnf-automatic-restart icon indicating copy to clipboard operation
dnf-automatic-restart copied to clipboard

When i try to start the tool standalone nothing happens

Open agross opened this issue 2 years ago • 1 comments

Hello,

I'm trying to use dnf-automatic-restart on rhel8 but i doesn't seem to do anything. Tried to debug but could not find any relevant (debug) information.

When i try to start the tool standalone nothing happens ?
tracer output: .. displays no information.

I have for example:
/usr/local/sbin/dnf-automatic-restart -r 15
nothing happend (at 15.00)

cat dnf-automatic-install.service
# /usr/lib/systemd/system/dnf-automatic-install.service
[Unit]
Description=dnf automatic install updates
# See comment in dnf-makecache.service
ConditionPathExists=!/run/ostree-booted
After=network-online.target

[Service]
Type=oneshot
Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
Environment="ABRT_IGNORE_PYTHON=1"
ExecStart=/usr/bin/dnf-automatic /etc/dnf/automatic.conf --timer --installupdates

# /etc/systemd/system/dnf-automatic-install.service.d/override.conf
[Service]
# Path to the cloned script (see step 1 above).
ExecStartPost=/usr/local/sbin/dnf-automatic-restart

Any help would be appriciated ;) Grz ~remke

Originally posted by @rschu68 in https://github.com/agross/dnf-automatic-restart/issues/17#issuecomment-1148652516

agross avatar Jun 08 '22 04:06 agross

/usr/local/sbin/dnf-automatic-restart -r 15 nothing happend (at 15.00)

A reboot at 15:00 will only happen if at the time the script runs (i.e. now) an update was determined by tracer that requires a reboot.

Tried to debug but could not find any relevant (debug) information.

DId you try this?

https://github.com/agross/dnf-automatic-restart#monitoring

agross avatar Jun 08 '22 04:06 agross