Thread: Startup and Shutdown Scripts in 9.04
i have couple of synchronizing scripts want run automatically @ startup, shutdown , reboot.
no expert @ it, , think have new way go, had @ least figured out few things juggling scripts in system v.
in new system have no clue , can't seem find documentation can understand.
can me please , walk me through need do.
scripts written , run fine command line.
need them run automatically.
please if can.
add scripts line in file "/etc/rc.local". file last thing run system runs through run-level two.
have 2 lines in rc.local are:
/sbin/ifconfig eth1 txqueuelen 100
/sbin/ifconfig eth0 txqueuelen 100
reduce queue lengths on ethernet cards response faster. default queue length 1000, 1000 packets have dump before 1001 packet queued. want faster response , smaller queue it.
sys5 (pronounced "sys five") systems come up, pass through various run-levels. if system has file /etc/inittab, these run-levels , stand (look @ file). level-1 single user, used os repair. level-2 first time os switches multi-user(no network) , level-3 full multi-user(with network) (but text based consoles-no gui). run level-5 starts gui.
run-level scripts live in directory called /etc/init.d, run-level link these scripts using "ln -s" series of directories named "/etc/rc1.d, /etc/rc0.d, /etc/rc2.d, /etc/rc3.d , on. number determines run-level. scripts can "ln -s"ed scripts. "ln -s" called soft links. program "/sbin/init" , process 1---the first process on multi process system. "ps ax" prove it. because of "ln -s", easy delete link without deleting shell-script. when "ln -s" link executed, points real file. (ms windows has no similar file link ability linux/unix).
1 more slight of hand. scripts start s01xxx , go s99xxx in each runlevel. leading s means "start", , when machine boots "s" files executed there set of names begin "k01xxx" , go "k99xxx". these scripts "kill" scripts run during shutdown. "/sbin/init" executes theses files 00 99 , in order sends "start" during boot , "stop" during shutdown. (sorry can't remember if k files executed 00 99 or 99 00).
speaking, scripts have executed time run-level 3 complete. scripts @ run-level 3 same run-level 5.
hope helps little..............
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Startup and Shutdown Scripts in 9.04
Ubuntu
Comments
Post a Comment