Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178628 - need a way to hook into post etc-update
Summary: need a way to hook into post etc-update
Status: RESOLVED OBSOLETE
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-15 12:33 UTC by SpanKY
Modified: 2012-03-11 03:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2007-05-15 12:33:02 UTC
we have some scripts that may need to be run after etc-update is executed ...

for example, any files installed into /etc/modules.d/ or /etc/modprobe.d/ should have `update-modules` run afterwards

or after /etc/ca-certificates.conf is updated, update-ca-certificates should be executed
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2007-05-15 13:08:36 UTC
I assume you want this for all config file managers, not just etc-update, right?
Comment 2 SpanKY gentoo-dev 2007-05-15 14:17:42 UTC
the immediate need was for etc-update, but if you want to make it extensible and make it agnostic of the utility, that's fine
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2007-05-15 14:34:43 UTC
(In reply to comment #2)
> the immediate need was for etc-update, but if you want to make it extensible
> and make it agnostic of the utility, that's fine
> 

A daemon using inotify maybe?
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2007-05-15 14:35:53 UTC
(In reply to comment #3)
> 
> A daemon using inotify maybe?
> 

Would have the benefit of catching changes done outside of etc-update too. Then it could optionally have a dbus based API to ask for confirmation from the user on running the tool.
Comment 5 SpanKY gentoo-dev 2007-05-15 14:57:54 UTC
ugh, i see that as a death spiral
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2007-05-15 14:59:44 UTC
Petteri: Your thinking wayyyy to high level on this one right now. The tool we need is much lower then that. Granted, if you wanted something like this, I'm sure we could make some hooks in there to call some bash D-Bus bindings to notify stuff like gnome-system-tools/backends.

vapier: This is exactly what we need. Great idea.
Comment 7 SpanKY gentoo-dev 2012-03-11 03:17:23 UTC
i think for most things now, people have converted to .d dirs so fragments can be installed without having to generate a single config file.  certainly for the modules/modprobe stuff, that's what we do.