RcLocalHowto
Differences between revisions 2 and 14 (spanning 12 versions)
|
Size: 1125
Comment:
|
← Revision 14 as of 2008-08-06 16:37:47 ⇥
Size: 56
Comment: converted to 1.6 markup
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| ||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Contents'''[[BR]][[TableOfContents]]|| =An rc.local equivalent for Debian/Ubuntu= In many distributions you can add commands to run certain programs at the end of the boot process after all system services have been started. For this purpose various distribution uses various method. For example in Redhat based distributions we can add our own scripts or programs into the /etc/rc.d/rc.local file, however there is no such file in a Debian based system. Here is the way to accomplish the same thing the debian way: == Creatting /etc/ini.d/local == {{{ sudo vi /etc/init.d/local }}} This file is a shell script and it should start with: {{{ #! /bin/sh }}} == Making the file executable == Make this file executable with: {{{ chmod +x /etc/init.d/local }}} ==link the new local file with Init== We are going to use this script a System V init script using: update-rc.d local defaults 80 Thanks to: http://plope.com/Members/chrism/debian_rc_local_equiv |
#REFRESH 0 http://help.ubuntu.com/community/RcLocalHowto |
RcLocalHowto (last edited 2008-08-06 16:37:47 by localhost)