You are not logged in.

#1 2013-11-23 12:20:18

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Pacman should run `systemd daemon-reload` when updating .service files

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

#2 2013-11-23 13:20:21

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: Pacman should run `systemd daemon-reload` when updating .service files

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

#3 2013-11-23 13:31:24

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Pacman should run `systemd daemon-reload` when updating .service files

Yes I know about the bugtracker, I was looking for comments on the forums first; I'll clarify this in my post

Offline

#4 2013-11-23 13:47:26

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: Pacman should run `systemd daemon-reload` when updating .service files

This should be easy once we have hooks implemented in pacman.

Offline

#5 2013-11-23 14:23:25

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Pacman should run `systemd daemon-reload` when updating .service files

Pierre wrote:

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

#6 2013-11-23 15:00:18

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,399
Website

Re: Pacman should run `systemd daemon-reload` when updating .service files

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

#7 2013-11-27 02:08:59

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: Pacman should run `systemd daemon-reload` when updating .service files

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 packagesZsh and other configs

Offline

#8 2013-11-27 02:36:40

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,134

Re: Pacman should run `systemd daemon-reload` when updating .service files

graysky wrote:

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

Board footer

Powered by FluxBB