You are not logged in.
Every time pacman updates a service like ngingx; I would like to restart that service to propagate the changes. However; systemd always complains that the service file was updated. It would be nice if pacman would do this for me. Is it possible to extend pacman in userland, so I can execute this command whenever a .service file is touched? Or should I write a pacman wrapper that uses inotify to detect this?
Anyone knows if this is currently possible? I'm also interested in feedback; I'll post a feature-request on the bugtracker depending on your replies
Last edited by Spider.007 (2013-11-23 13:32:54)
Offline
Feature request in the bugtracker
As far only Allan watch the forum and who know why....
Maybe when Hooks are finished (if are) this can by done without problems
Well, I suppose that this is somekind of signature, no?
Offline
Yes I know about the bugtracker, I was looking for comments on the forums first; I'll clarify this in my post
Offline
This should be easy once we have hooks implemented in pacman.
Offline
This should be easy once we have hooks implemented in pacman.
That does indeed sound very interesting; I found https://wiki.archlinux.org/index.php/Us … cman_Hooks but it seems this feature isn't on a roadmap, nor is there any development being done, am I right?
Offline
A generic ini config file parser has been added to pacman-git, so it should be much easier to implement now. But no-one I know is working on hooks... I guess the basic stuff (hooks running a command not requiring a file or package being passed) would be relatively easy to implement now.
Offline
Glad to hear the underlying code is coming together. I have noticed that nfs exports simply stop working when the nfs-utils package is updated, so having the underlying services restart after the update would be a welcomed addition.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Glad to hear the underlying code is coming together. I have noticed that nfs exports simply stop working when the nfs-utils package is updated, so having the underlying services restart after the update would be a welcomed addition.
You could have systemd watch for changes to a relevant file or directory and restart the service. Not as neat but possibly useful if you haven't thought of it already.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline