You are not logged in.
This was asked several year ago but the thread has gone stale. I think the question is still relevant today: why are our packages that modify a systemd unit not trigger `systemctl daemon-reload` via a pacman hook or post_install script? Per my inspection of everything in [core], [extra], and [community] (see below), nothing is doing it at last with a script. Seems perfect for a pacman hook, no? Pros? Cons? Perhaps this is best reported in the bug tracker.
% find /var/abs -type f -name '*.install' -print0 | xargs -0 grep daemon-reloadEDIT: FS#50529; let's see what the devs think.
Last edited by graysky (2016-08-26 22:15:03)
Offline
Con: it screws up timers.
Offline
Con: it screws up timers.
@Scimmia - Does it?
Before:
% systemctl list-timers 
NEXT                         LEFT           LAST                         PASSED       UNIT                         ACTIVATES
Sat 2016-08-27 15:50:20 EDT  12h left       Fri 2016-08-26 15:50:20 EDT  11h ago      systemd-tmpfiles-clean.timer systemd-tmpfi
Sun 2016-08-28 00:00:00 EDT  20h left       Sat 2016-08-27 00:00:01 EDT  3h 40min ago logrotate.timer              logrotate.ser
Sun 2016-08-28 00:00:00 EDT  20h left       Sat 2016-08-27 00:00:01 EDT  3h 40min ago man-db.timer                 man-db.servic
Sun 2016-08-28 00:00:00 EDT  20h left       Sat 2016-08-27 00:00:01 EDT  3h 40min ago shadow.timer                 shadow.servic
Mon 2016-08-29 00:00:00 EDT  1 day 20h left Mon 2016-08-22 00:00:41 EDT  5 days ago   fstrim.timer                 fstrim.servicNow reset and again:
% sudo systemctl daemon-reload
% systemctl list-timers       
NEXT                         LEFT           LAST                         PASSED       UNIT                         ACTIVATES
Sat 2016-08-27 15:50:20 EDT  12h left       Fri 2016-08-26 15:50:20 EDT  11h ago      systemd-tmpfiles-clean.timer systemd-tmpfi
Sun 2016-08-28 00:00:00 EDT  20h left       Sat 2016-08-27 00:00:01 EDT  3h 41min ago logrotate.timer              logrotate.ser
Sun 2016-08-28 00:00:00 EDT  20h left       Sat 2016-08-27 00:00:01 EDT  3h 41min ago man-db.timer                 man-db.servic
Sun 2016-08-28 00:00:00 EDT  20h left       Sat 2016-08-27 00:00:01 EDT  3h 41min ago shadow.timer                 shadow.servic
Mon 2016-08-29 00:00:00 EDT  1 day 20h left Mon 2016-08-22 00:00:41 EDT  5 days ago   fstrim.timer                 fstrim.servicLast edited by graysky (2016-08-27 07:43:43)
Offline
I believe those are all "OnCalender" timers. Try it with an "OnActive" timer.
Offline
Manager Lifecycle Commands
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.
This sounds rather intrusive and very similar to re-running init. 
How well do X , gnome, KDE, server applications cope with this ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
 Try clean chroot manager by graysky
Offline
@Scimmia - Don't think I have any of that type... will check on a some other boxes.
@Lone - Does not reset my displaymanager if that's your question.
Offline
@Lone - Does not reset my displaymanager if that's your question.Not what i meant, people can run "pacman -Syu" from an x-terminal (even i do it sometimes before running makepkg).
What will happen if your hook is executed while a user is in X and has multiple programs open ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
 Try clean chroot manager by graysky
Offline