For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > March 2008 > execute a program during a system shutdown or reboot









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author execute a program during a system shutdown or reboot
bharath venk

2008-03-25, 7:25 pm

hi,
i wanna to how to make program to run automatically when is
about to shutdown or reboot
Chris Friesen

2008-03-25, 7:25 pm

bharath venk wrote:
> hi,
> i wanna to how to make program to run automatically when is
> about to shutdown or reboot


With typical sysV init scripts you would add a script to
/etc/rc.d/init.d with a symlink in /etc/rc.d/rc6.d pointing to the script.

Chris
bharath venk

2008-03-26, 4:46 am

On Mar 26, 2:38 am, Chris Friesen <cbf...@mail.usask.ca> wrote:
> bharath venk wrote:
>
> With typical sysV init scripts you would add a script to
> /etc/rc.d/init.d with a symlink in /etc/rc.d/rc6.d pointing to the script.
>
> Chris


please can u tell me more about it
Logan Shaw

2008-03-26, 10:52 pm

bharath venk wrote:
> On Mar 26, 2:38 am, Chris Friesen <cbf...@mail.usask.ca> wrote:
[color=darkred]
[color=darkred]
[color=darkred]
> please can u tell me more about it


The exact details are platform-specific. There is usually some
documentation, but it's hard to say much more without knowing what
system you're interested in.

- logan
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com