Re: How to run a command as root when I shutdown system automatically ?

2011-04-05 Thread Chris Brennan
On Tue, Apr 5, 2011 at 1:41 AM, Kumar Appaiah a.ku...@alumni.iitm.ac.in wrote: On Tue, Apr 05, 2011 at 11:57:31AM +0800, waterloo wrote: How to run a command as root when I shutdown system automatically ? I use Debian 6 amd64. Searching online led me to this:

Re: How to run a command as root when I shutdown system automatically ?

2011-04-05 Thread Darac Marjal
On Tue, Apr 05, 2011 at 11:57:31AM +0800, waterloo wrote: How to run a command as root when I shutdown system automatically ? I use Debian 6 amd64. Make it an init script that is only called in runmodes 0 (for shutdown) and 6 (for reboot)? I think the proper way to do this would be to set

How to run a command as root when I shutdown system automatically ?

2011-04-04 Thread waterloo
How to run a command as root when I shutdown system automatically ? I use Debian 6 amd64.

Re: How to run a command as root when I shutdown system automatically ?

2011-04-04 Thread jidanni
w == waterloo waterloo2...@gmail.com writes: w How to run a command as root when I shutdown system automatically ? w I use Debian 6 amd64. make a /root/bin/myshutdown script and run that instead perhaps. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of

Re: How to run a command as root when I shutdown system automatically ?

2011-04-04 Thread Kumar Appaiah
On Tue, Apr 05, 2011 at 11:57:31AM +0800, waterloo wrote: How to run a command as root when I shutdown system automatically ? I use Debian 6 amd64. Searching online led me to this: http://synapse.wordpress.com/2007/03/24/run-a-script-on-startup-shutdown-in-linux/ HTH. Kumar -- The