aboutsummaryrefslogtreecommitdiff
path: root/rc
AgeCommit message (Collapse)AuthorFiles
2011-04-30Merge remote-tracking branch 'seblu/master'Tom Gundersen1
Conflicts: rc Trivial conflict with Dave's counting vs summing patch. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-04-30rc: exit with error count, not error sumDave Reisner1
cc199761f assumes that /etc/rc.d scripts will exit with a value of 0 or 1. Since this can't be guaranteed, clamp the return value to 0 or 1 before adding it to the exit value. Note that a lot of /etc/rc.d scripts don't properly exit with 0 or 1, so this is more of a forward looking change in the hope that these scripts are cleaned up. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-04-24rc cleaning run rc.d scriptsSebastien Luttringer1
rc helper now call rc.d scripts in root directory with a clean environment. Chosen vars came from init man page. It allows to launch scripts from the command line, as if they had been launched by init Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-04-24rc: fix whitespace in case statementDave Reisner1
2011-04-24rc: exit with a meaningful valueDave Reisner1
2011-04-16Add an rc helperSebastien Luttringer1
This is allow a quick calling to /etc/rc.d scripts by calling a shell command. By example, starting sshd and gpm can be done by typing: rc start sshd gpm rc can also list available scripts and show which is started/stopped in DAEMONS [tomegun: fixed detection of autostart of background services] Signed-off-by: Sebastien Luttringer <seblu@seblu.net> Signed-off-by: Tom Gundersen <teg@jklm.no>