summaryrefslogtreecommitdiff
path: root/etc/rc.d/rc.subr
AgeCommit message (Expand)Author
2013-07-11no double negatives in error message; ok aja@Otto Moerbeek
2013-04-04Show only available actions in RC script usage messages.Vadim Zhukov
2012-11-19Remove useless test: rc_rm_runfile() uses rm -f which always returns 0Antoine Jacoutot
2012-11-18Don't output "$action is not supported" when running an rc.d(8) scriptAntoine Jacoutot
2012-11-12Don't check if ${local_rcconf} is defined before sourcing rc.conf but doAntoine Jacoutot
2012-09-13Simplify the way we call the rc.d(8) script in "restart".Antoine Jacoutot
2012-09-01Make '-f' only affects the "start" action.Antoine Jacoutot
2012-08-21Use the new "-q" option of pgrep(1) instead of redirecting stdoutAntoine Jacoutot
2012-08-13unset _rcflags and _rcuser so that they don't get inherited by rc.d(8)Antoine Jacoutot
2012-08-13Set the daemon_class as readonly as it should be (and is documented asAntoine Jacoutot
2012-08-11Make a couple of variables local.Antoine Jacoutot
2012-08-04Add a new rc_usercheck variable (default to YES). When set to no, rootAntoine Jacoutot
2012-07-07Simplify rc_wait() (no functionnal change).Antoine Jacoutot
2012-05-30in -d mode, display an error message before exiting, in the case theMarc Espie
2011-11-30Fix an issue when uid != euid (e.g. when running shutdown(8) as aAntoine Jacoutot
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