summaryrefslogtreecommitdiff
path: root/etc/rc.d/rc.subr
AgeCommit message (Expand)Author
2011-10-15either set or unset variables that are to be examined further on, don'tAlexander Hall
2011-10-12Localize _new_pexp unconditionally, or rc_read_runfile()Ingo Schwarze
2011-10-09When the _RC_RUNFILE (by some ill chance) happened to be empty orIngo Schwarze
2011-10-09Finally make it possible to restart/stop a daemon after having changedAntoine Jacoutot
2011-10-07Check if we are root right from the start.Antoine Jacoutot
2011-10-07Prepend an underscore to internal variable names; this was reverted byAntoine Jacoutot
2011-09-25revert previous and pass on the RC_DEBUG and RC_FORCE flags in the start+stopAlexander Hall
2011-09-24Repair "restart" debug and force modes (we need to export RC_DEBUG andAntoine Jacoutot
2011-09-22Add missing "*)" case statement and make sure RC_DEBUG and RC_FORCE areAntoine Jacoutot
2011-09-19Use arugments for rc script instead of environment variables to indicateRobert Nagy
2011-07-31when reloading do an rc_wait instead of just an rc_checkRobert Nagy
2011-07-31redirect rc_err() output to stderr, from david@Robert Nagy
2011-07-23Print the daemon name before starting, and ok/failed afterwards, providingStuart Henderson
2011-07-08add license, ok ajacoutot@, deraadt@Robert Nagy
2011-07-07Fix reload:Antoine Jacoutot
2011-07-06Add rc.d(8) script for the system daemons that are restartable.Robert Nagy
2011-07-03let reload report (ok) or (failed) just like all other actions;Ingo Schwarze
2011-06-20Refactoring for simplicity, no functional change:Ingo Schwarze
2011-06-10Finally deal with background processes: "rc_cmd start" will now returnAntoine Jacoutot
2011-05-19Setting RC_DEBUG is enough, it does not need to be explicitely set toAntoine Jacoutot
2011-04-09Fix multiple issues and make the code simpler and more robust:Ingo Schwarze
2011-04-06- in case reload fails, print the failed message (from Piotr Sikora)Robert Nagy
2011-04-06Remove leading/trailing spaces from daemon_flags.Antoine Jacoutot
2011-04-05Handle a daemon_flags of '-n' by using printf '%s\n' instead of echoPhilip Guenthe
2011-04-05Quote $daemon_flags to prevent echo(1) picking them as input flags.Antoine Jacoutot
2011-03-25Bump timeout to 30s.Antoine Jacoutot
2011-03-24if daemon_flags=NO is set, just exitRobert Nagy
2011-03-19Since we now use pkill -0 for "check", it must be run as root,Ian Darwin
2011-03-17- introduce the INRC environment variable so that rc.subr(8) knows if itRobert Nagy
2011-03-14Return proper codes so that we don't rc_start if rc_pre failed and weAntoine Jacoutot
2011-03-10Add a small comment at the top to explain what this file does.Antoine Jacoutot
2011-03-09Make reload and check consistent with start/stop.Antoine Jacoutot
2011-03-09Move the redirections into the rc_cmd itself instead of rc_start andAntoine Jacoutot
2011-03-09Move rc_pre and rc_post out of the rc_start/rc_stop functions into theAntoine Jacoutot
2011-03-06Add an "rc_bg" variable that is undefined by default and allows to startAntoine Jacoutot
2011-02-24Remove daemon_shell and force the use of /bin/sh for the su(1) call.Antoine Jacoutot
2011-01-05Put the "su -c ..." command into an rcexec variable so that we canAntoine Jacoutot
2011-01-04Check for a login class that match the rc script name and if we find oneAntoine Jacoutot
2010-12-29After the recent changes, there is no need for an rc_conf function.Antoine Jacoutot
2010-12-27There is no point in calling rc_conf manually from each and every rcAntoine Jacoutot
2010-12-24Fix a flaw in the rc.subr framework reported by stephan@ whereAntoine Jacoutot
2010-12-13Prefer '-l' over '-' which is deprecated.Antoine Jacoutot
2010-12-13simulate a full login with su, now that the environment is fine afterRobert Nagy
2010-12-11Make it possible to mark an rc action as unsupported by setting theAntoine Jacoutot
2010-12-11Sanitise daemon_flags: remove multiple whitespaces from _rcflags.Antoine Jacoutot
2010-12-11Do not overwrite the settings in the rc scripts itself, so use the sameRobert Nagy
2010-12-10Add support for setting _user _class and _shell for a specific daemon,Robert Nagy
2010-10-28remove my debug printfRobert Nagy
2010-10-28After discussing with Ingo and Antoine we decided to renameRobert Nagy
2010-10-28add $Robert Nagy