Commit 38c3d8cb authored by Seblu's avatar Seblu

Add pacman hook to reload systemd services

parent 3b8ad738
......@@ -14,7 +14,7 @@ conflicts=('archutils' 'kernel-reinstall')
package() {
cd "$startdir"
install -dm755 "$pkgdir"/usr/{share/licenses/$pkgname,bin,lib/munin/plugins}
install -dm755 "$pkgdir"/usr/{share/{licenses/$pkgname,libalpm/hooks},bin,lib/munin/plugins}
# install legal stuff
install -m644 COPYRIGHT LICENSE "$pkgdir/usr/share/licenses/$pkgname"
# install binaries
......@@ -26,6 +26,8 @@ package() {
# add shortcut, because i'm lazy
ln -s checkservices "$pkgdir/usr/bin/cs"
ln -s system-upgrade "$pkgdir/usr/bin/sup"
# add hooks
install -m644 systemd-daemon-reload.hook "$pkgdir/usr/share/libalpm/hooks/10-systemd-daemon-reload.hook"
}
# vim:set ts=2 sw=2 et:
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = File
Target = *.service
[Action]
Description = Reload of systemd units
Depends = systemd
When = PostTransaction
Exec = /usr/bin/systemctl daemon-reload
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment