summaryrefslogtreecommitdiff
path: root/etc/rc.d/rc.subr
AgeCommit message (Expand)Author
2015-01-02Fix return code of _rc_quirks().Antoine Jacoutot
2015-01-02Add a comment about the default values being duplicated in rcctl(8).Antoine Jacoutot
2014-11-17"reload" should fail if the service is not running in the first place.Antoine Jacoutot
2014-08-30Make it possible to pass a specific error code to _rc_err().Antoine Jacoutot
2014-08-25Put _rc_err argument under quotes to respect the syntax we are passing.Antoine Jacoutot
2014-08-24Fix reversed logic.Antoine Jacoutot
2014-08-24Drop uneeded parenthesis in usage().Antoine Jacoutot
2014-08-24Drop unused variables.Antoine Jacoutot
2014-08-24In debug mode, make it clear when we are using the default flags whenAntoine Jacoutot
2014-08-24In debug mode (`-d'), only print the flags relevant to the rc.d(8) we areAntoine Jacoutot
2014-08-21Drop sanitation, _rc_parse_conf does this for us already.Antoine Jacoutot
2014-08-17When running interactively, display the output of the "check" actionAntoine Jacoutot
2014-08-11Typo.Antoine Jacoutot
2014-08-11Let _rc_parse_conf stick to parsing /etc/rc.conf and /etc/rc.conf.localMatthias Kilian
2014-08-11Make it possible to pass arguments to _rc_parse_conf().Antoine Jacoutot
2014-08-01Don't return, just skip over non existing rc.conf or rc.conf.local file.Robert Peichaer
2014-07-31In debug mode, properly sort and drop duplicates so that we don't endAntoine Jacoutot
2014-07-30Fix evil typo (multicast_hosts -> multicast_host).Antoine Jacoutot
2014-07-12replace the heavy shell magic in quirks to handle backward compat with simplerRobert Nagy
2014-07-12Make rc.conf a parsed configuration file and stop sourcing it as a shellRobert Nagy
2014-07-09Add a daemon_timeout variable for rc_wait().Antoine Jacoutot
2014-07-09White spaces.Antoine Jacoutot
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