[arch-dev-public] Hooks!

Massimiliano Torromeo massimiliano.torromeo at gmail.com
Fri Apr 29 12:52:28 UTC 2016

Il giorno ven 29 apr 2016 alle ore 14:47 Massimiliano Torromeo <
massimiliano.torromeo at gmail.com> ha scritto:

> I was also wondering about a pacman hook ro run "systemctl daemon-reload"
> after systemd units installations/upgrades. This is something that was not
> done even in .install files but I don't know if there was a reason why.

I forgot to include the actual trigger. I've had this installed on some
systems for a while:

Operation = Install
Operation = Upgrade
Operation = Remove
Type = File
Target = usr/lib/systemd/system/*

Description = Reload systemd unit files
When = PostTransaction
Exec = /usr/bin/systemctl --system daemon-reload
Depends = systemd

More information about the arch-dev-public mailing list