Re: Re-reading a config file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Rishi
>  Suppose I have a config file that my program reads
> at startup. Now suppose a user goes ahead and changes
> that file, I wish to re-read the file again.
> How do I achieve that?
> TIA!
> Rishi

this is not related to this mailing list ( assuming ur talking about a
user space process ).
anyway, the standard way is to send the progi a signal, usually HUP .
set ur progi to catch this signal, and reread its configuration.

these would help:
man signal
man sigaction


========================================================================
nir.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux