Discussion:
Update Warning
(too old to reply)
santo
2022-02-20 10:37:58 UTC
Permalink
hi all...
I am in the process of updating my system after some time...
during the scrolling of the various pakages I saw the following warning:

Warning: The unit file, source configuration file or drop-ins of
udisks2.service changed on disk. Run 'systemctl daemon-reload' to reload
units.

when the update is finished what is exactly that I have to do? or is just
a routine message?

To Run:

Run 'systemctl daemon-reload'

means that as root I have to type the above line?

Apologies but I am not a computer savvy...
:-)

Thanks in advance for the help...
Santo
Vincent Coen
2022-02-20 14:23:16 UTC
Permalink
Hello santo!
Post by santo
hi all...
I am in the process of updating my system after some time...
Warning: The unit file, source configuration file or drop-ins of
udisks2.service changed on disk. Run 'systemctl daemon-reload' to
reload units.
when the update is finished what is exactly that I have to do? or is
just a routine message?
Run 'systemctl daemon-reload'
means that as root I have to type the above line?
Apologies but I am not a computer savvy...
:-)
More likely sudo systemctl daemon-reload

How ever if you reboot the system after the update and if it is a lot of
packages I would seriously recommend doing that then it will be done any
way.

Vincent
Bit Twister
2022-02-20 16:09:46 UTC
Permalink
Post by santo
hi all...
I am in the process of updating my system after some time...
Warning: The unit file, source configuration file or drop-ins of
udisks2.service changed on disk. Run 'systemctl daemon-reload' to reload
units.
when the update is finished what is exactly that I have to do? or is just
a routine message?
That is not a routine message.'
'
Post by santo
Run 'systemctl daemon-reload'
means that as root I have to type the above line?
Yes, because is needs root privileges to execute successfully.
William Unruh
2022-02-20 16:24:52 UTC
Permalink
Post by santo
hi all...
I am in the process of updating my system after some time...
Warning: The unit file, source configuration file or drop-ins of
udisks2.service changed on disk. Run 'systemctl daemon-reload' to reload
units.
when the update is finished what is exactly that I have to do? or is just
a routine message?
Run 'systemctl daemon-reload'
means that as root I have to type the above line?
You have to type in
systemctl daemon-reload
and then hit the enter key. Hitting the enter key tells bash to
interpret the line and carry out the operations that that line tells it
to carry out. That is what "Run" means.
Ie, the word Run is an instruction to you. The instruction to the
computer is
systemctl daemon-reload
santo
2022-02-21 01:19:44 UTC
Permalink
Post by santo
hi all...
means that as root I have to type the above line?
You have to type in systemctl daemon-reload and then hit the enter key.
Hitting the enter key tells bash to interpret the line and carry out the
operations that that line tells it to carry out. That is what "Run"
means.
Ie, the word Run is an instruction to you. The instruction to the
computer is systemctl daemon-reload
Thank you all for the answers...
:-)

David W. Hodgins
2022-02-20 16:58:13 UTC
Permalink
Post by santo
I am in the process of updating my system after some time...
Warning: The unit file, source configuration file or drop-ins of
udisks2.service changed on disk. Run 'systemctl daemon-reload' to reload
units.
when the update is finished what is exactly that I have to do? or is just
a routine message?
Run 'systemctl daemon-reload'
means that as root I have to type the above line?
Apologies but I am not a computer savvy...
As explained by others, it is not a routine message, as it does require user
action.

The message is generated by systemd whenever a file in /lib/systemd/system/
(or in one of it's sub directories) has been modified by an update. As per the
comment, The command ...
systemctl daemon-reload
must be run. That command must be run as root.

In a terminal program such as konsole or gnome-terminal either use "su -" to
become root and then enter the command, or if you've set it up, use (as the
regular user, "sudo systemctl daemon-reload". A third option is to reboot the
system, just like with kernel or glibc updates as that will also force all daemons
(always running programs such as polkit) to be restarted.

Regards, Dave Hodgins
Bit Twister
2022-02-20 17:40:50 UTC
Permalink
Post by David W. Hodgins
In a terminal program such as konsole or gnome-terminal either use "su -" to
become root and then enter the command, or if you've set it up, use (as the
regular user, "sudo systemctl daemon-reload". A third option is to reboot the
system, just like with kernel or glibc updates as that will also force all daemons
(always running programs such as polkit) to be restarted.
I agree a reboot will cause all daemons to be restarted, but I am not sure
systemd will run any newly installed unit files. As I misunderstand it
systemd keeps a separate copy of the unit files that are the ones executed
on start/stop. The reload command copies all those unit files back into
the actual directories systemd uses to start/stop those units.

I base the above on experience with changing my custom unit files and trying
to have systemd run the unit where it complains about the unit file has
changed and requests me to do a reload to pick up the new unit file.
David W. Hodgins
2022-02-20 18:30:34 UTC
Permalink
Post by Bit Twister
Post by David W. Hodgins
In a terminal program such as konsole or gnome-terminal either use "su -" to
become root and then enter the command, or if you've set it up, use (as the
regular user, "sudo systemctl daemon-reload". A third option is to reboot the
system, just like with kernel or glibc updates as that will also force all daemons
(always running programs such as polkit) to be restarted.
I agree a reboot will cause all daemons to be restarted, but I am not sure
systemd will run any newly installed unit files. As I misunderstand it
systemd keeps a separate copy of the unit files that are the ones executed
on start/stop. The reload command copies all those unit files back into
the actual directories systemd uses to start/stop those units.
I base the above on experience with changing my custom unit files and trying
to have systemd run the unit where it complains about the unit file has
changed and requests me to do a reload to pick up the new unit file.
There are two similar sub commands of systemctl. From the systemctl man page ...
=========
reload PATTERN...
Asks all units listed on the command line to reload their configuration. Note that this will reload the service-specific configuration, not the unit configuration file of systemd. If you want
systemd to reload the configuration file of a unit, use the daemon-reload command. In other words: for the example case of Apache, this will reload Apache's httpd.conf in the web server, not
the apache.service systemd unit file.
This command should not be confused with the daemon-reload command.

daemon-reload
Reload the systemd manager configuration. This will rerun all generators (see systemd.generator(7)), reload all unit files, and recreate the entire dependency tree. While the daemon is being
reloaded, all sockets systemd listens on behalf of user configuration will stay accessible.
This command should not be confused with the reload command.
=========
The info that is being reloaded by the daemon reload is all of the
inter-relationships between various units. That info is in ram only (/run/systemd/).

I've never seen a situation where changing a unit file and then rebooting also
required running "systemctl daemon-reload".

Regards, Dave Hodgins
Loading...