Talk:Rc script

From LQWiki
Jump to navigation Jump to search

can you guys explain how the rc script is executed line by line in the below given script


  1. !/sbin/runscript

depend() {

   need bar

}

start() {

   ebegin "Starting foo"
   /sbin/foo
   eend $? "Failed to start foo"

}

stop() {

   ebegin "Stopping foo"
   kill $(cat /var/run/foo.pid)
   eend $? "Failed to stop foo"

}

Report your questions to the forum, this is not the place to post them. SciYro 18:07, October 16, 2007 (EDT)