public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] reload etc conf files
@ 2009-03-30 14:25 laurent
  2009-03-30 14:32 ` Alan McKinnon
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: laurent @ 2009-03-30 14:25 UTC (permalink / raw
  To: gentoo-user

Hi,

I finished etc-updates with a lot of files, is there a way or even need 
to make all application reload the updated configuration files?

thx
Laurent



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] reload etc conf files
  2009-03-30 14:25 [gentoo-user] reload etc conf files laurent
@ 2009-03-30 14:32 ` Alan McKinnon
  2009-03-30 15:20 ` Mike Kazantsev
  2009-03-30 15:31 ` AllenJB
  2 siblings, 0 replies; 9+ messages in thread
From: Alan McKinnon @ 2009-03-30 14:32 UTC (permalink / raw
  To: gentoo-user

On Monday 30 March 2009 16:25:10 laurent wrote:
> Hi,
>
> I finished etc-updates with a lot of files, is there a way or even need
> to make all application reload the updated configuration files?

Yes, it's called a reboot. Nothing else will get the job done and guarantee 
it's done right without errors.

The better way is to just look at the files that were changed, decide for 
yourself if they need to be restarted and if so restart them manually.

If this reply sounds snarky, it's because your question is actually 
nonsensical from a Unix perspective (although probably quite reasonable from a 
human perspective). This is a situation that requires either a sledgehammer 
approach or intelligent human intervention.

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] reload etc conf files
  2009-03-30 14:25 [gentoo-user] reload etc conf files laurent
  2009-03-30 14:32 ` Alan McKinnon
@ 2009-03-30 15:20 ` Mike Kazantsev
  2009-03-30 15:35   ` Alan McKinnon
  2009-03-30 18:39   ` Momesso Andrea
  2009-03-30 15:31 ` AllenJB
  2 siblings, 2 replies; 9+ messages in thread
From: Mike Kazantsev @ 2009-03-30 15:20 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

On Mon, 30 Mar 2009 16:25:10 +0200
laurent <laurent@logiquefloue.org> wrote:

> I finished etc-updates with a lot of files, is there a way or even need 
> to make all application reload the updated configuration files?

Not quite what you asked, but there's easy way to check if there are
any processes still using pre-update (non-existing now) libs:

  lsof | grep 'DEL.*lib' | cut -f 1 -d ' ' | sort -u

"lsof" here is sys-process/lsof (not part of the @system afaik).

-- 
Mike Kazantsev // fraggod.net

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] reload etc conf files
  2009-03-30 14:25 [gentoo-user] reload etc conf files laurent
  2009-03-30 14:32 ` Alan McKinnon
  2009-03-30 15:20 ` Mike Kazantsev
@ 2009-03-30 15:31 ` AllenJB
  2009-03-30 21:21   ` Neil Bothwick
  2 siblings, 1 reply; 9+ messages in thread
From: AllenJB @ 2009-03-30 15:31 UTC (permalink / raw
  To: gentoo-user

laurent wrote:
> Hi,
> 
> I finished etc-updates with a lot of files, is there a way or even need 
> to make all application reload the updated configuration files?
> 
> thx
> Laurent
> 

It depends upon the software / changes involved. Many services (eg. web 
server, mail servers) have a "reload" option on the init script (ie. 
/etc/init.d/apache reload), otherwise you generally need to restart them 
to apply changes. Some services / daemons will pick up changes on the 
fly, but generally they don't in my experience.

Programs which are not services / daemons will pick the changes up the 
next time they are run.

You DO NOT generally need to reboot to make sure config changes are 
correctly loaded. This is not Windows. You just need to read the 
documentation for the software involved.

AllenJB



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] reload etc conf files
  2009-03-30 15:20 ` Mike Kazantsev
@ 2009-03-30 15:35   ` Alan McKinnon
  2009-03-30 16:19     ` laurent
  2009-03-30 18:39   ` Momesso Andrea
  1 sibling, 1 reply; 9+ messages in thread
From: Alan McKinnon @ 2009-03-30 15:35 UTC (permalink / raw
  To: gentoo-user

On Monday 30 March 2009 17:20:44 Mike Kazantsev wrote:
> On Mon, 30 Mar 2009 16:25:10 +0200
>
> laurent <laurent@logiquefloue.org> wrote:
> > I finished etc-updates with a lot of files, is there a way or even need
> > to make all application reload the updated configuration files?
>
> Not quite what you asked, but there's easy way to check if there are
> any processes still using pre-update (non-existing now) libs:
>
>   lsof | grep 'DEL.*lib' | cut -f 1 -d ' ' | sort -u
>
> "lsof" here is sys-process/lsof (not part of the @system afaik).

He asked about config files updated via etc-update, not about libs updated via 
emerge

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] reload etc conf files
  2009-03-30 15:35   ` Alan McKinnon
@ 2009-03-30 16:19     ` laurent
  0 siblings, 0 replies; 9+ messages in thread
From: laurent @ 2009-03-30 16:19 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon a écrit :
> On Monday 30 March 2009 17:20:44 Mike Kazantsev wrote:
>   
>> On Mon, 30 Mar 2009 16:25:10 +0200
>>
>> laurent <laurent@logiquefloue.org> wrote:
>>     
>>> I finished etc-updates with a lot of files, is there a way or even need
>>> to make all application reload the updated configuration files?
>>>       
>> Not quite what you asked, but there's easy way to check if there are
>> any processes still using pre-update (non-existing now) libs:
>>
>>   lsof | grep 'DEL.*lib' | cut -f 1 -d ' ' | sort -u
>>
>> "lsof" here is sys-process/lsof (not part of the @system afaik).
>>     
>
> He asked about config files updated via etc-update, not about libs updated via 
> emerge
>
>   
yes it was usefull, I saw around fifteen process not updated so I did a 
reboot, and it's fine :)
thanks guys
L



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] reload etc conf files
  2009-03-30 15:20 ` Mike Kazantsev
  2009-03-30 15:35   ` Alan McKinnon
@ 2009-03-30 18:39   ` Momesso Andrea
  1 sibling, 0 replies; 9+ messages in thread
From: Momesso Andrea @ 2009-03-30 18:39 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 730 bytes --]

On Mon, Mar 30, 2009 at 09:20:44PM +0600, Mike Kazantsev wrote:
> On Mon, 30 Mar 2009 16:25:10 +0200
> laurent <laurent@logiquefloue.org> wrote:
> 
> > I finished etc-updates with a lot of files, is there a way or even need 
> > to make all application reload the updated configuration files?
> 
> Not quite what you asked, but there's easy way to check if there are
> any processes still using pre-update (non-existing now) libs:
> 
>   lsof | grep 'DEL.*lib' | cut -f 1 -d ' ' | sort -u
> 
> "lsof" here is sys-process/lsof (not part of the @system afaik).
> 
This is worth an alias in my .zshrc...
And imho you should also post it in http://www.commandlinefu.com/

---
TopperH
http://topperh.blogspot.com


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] reload etc conf files
  2009-03-30 15:31 ` AllenJB
@ 2009-03-30 21:21   ` Neil Bothwick
  2009-03-30 21:30     ` Alan McKinnon
  0 siblings, 1 reply; 9+ messages in thread
From: Neil Bothwick @ 2009-03-30 21:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]

On Mon, 30 Mar 2009 16:31:47 +0100, AllenJB wrote:

> It depends upon the software / changes involved. Many services (eg. web 
> server, mail servers) have a "reload" option on the init script (ie. 
> /etc/init.d/apache reload), otherwise you generally need to restart
> them to apply changes.

Or send them a SIGHUP - "killall -HUP processname"


-- 
Neil Bothwick

Programmers do it bit by bit.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] reload etc conf files
  2009-03-30 21:21   ` Neil Bothwick
@ 2009-03-30 21:30     ` Alan McKinnon
  0 siblings, 0 replies; 9+ messages in thread
From: Alan McKinnon @ 2009-03-30 21:30 UTC (permalink / raw
  To: gentoo-user

On Monday 30 March 2009 23:21:00 Neil Bothwick wrote:
> On Mon, 30 Mar 2009 16:31:47 +0100, AllenJB wrote:
> > It depends upon the software / changes involved. Many services (eg. web
> > server, mail servers) have a "reload" option on the init script (ie.
> > /etc/init.d/apache reload), otherwise you generally need to restart
> > them to apply changes.
>
> Or send them a SIGHUP - "killall -HUP processname"

Don't try that with X though...

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-03-30 21:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-30 14:25 [gentoo-user] reload etc conf files laurent
2009-03-30 14:32 ` Alan McKinnon
2009-03-30 15:20 ` Mike Kazantsev
2009-03-30 15:35   ` Alan McKinnon
2009-03-30 16:19     ` laurent
2009-03-30 18:39   ` Momesso Andrea
2009-03-30 15:31 ` AllenJB
2009-03-30 21:21   ` Neil Bothwick
2009-03-30 21:30     ` Alan McKinnon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox