Skip to main content
The 2024 Developer Survey results are live! See the results

New answers tagged

1 vote

Battery notification script works on its own but does not work when triggered by a systemd-service

The D-Bus session bus works similarly to the X server – there can be more than one per system, so clients must know the socket address to connect to, i.e. they need DBUS_SESSION_BUS_ADDRESS= which is ...
u1686_grawity's user avatar
1 vote

systemctl daemon-reload: show diff between running config and current file

So in kind of a crisis, I spend 4 hours making a python script without dependencies so I can more easily compare running config with usual config for systemctl unit files. Script is not perfect and ...
Kiwy's user avatar
  • 9,764
1 vote
Accepted

systemctl daemon-reload: show diff between running config and current file

Your suspicion is correct: systemctl cat always shows the contents of the relevant unit files as they currently are on disk, not as they are currently in systemd’s view of the system. You can see the ...
Stephen Kitt's user avatar

Top 50 recent answers are included