TIP_Run_a_command_on_boot
| Terminals / Shells • Network • X Window System • Portage • System • Filesystems • Kernel • Other |
This page will tell you how to have a command run on boot without going through the process of Creating an rc script
To have a command run at boot simply add the command to /etc/conf.d/local.start code>
To have a command run at shutdown simply add the command to /etc/conf.d/local.stop code>
Make sure the command returns control to the shell, else it will cause the boot process to hang. If needed use an & to background your command, e.g. /usr/bin/mycommand & code>
Note This is made for simple commands, if you need to run something complex I suggest Creating an rc script
Last modified: Fri, 05 Sep 2008 18:46:00 +1000 Hits: 19,897
Created by NickStallman.net, Luxury Homes Australia
Real estate agents should be using interactive floor plans and real estate agent tools.
