43 Commits (715651b5de7545924cec54d493a649393c455080)

Author SHA1 Message Date
  sthen 715651b5de Print the daemon name before starting, and ok/failed afterwards, providing 13 years ago
  robert f1179a1b33 add license, ok ajacoutot@, deraadt@ 14 years ago
  ajacoutot 3ad0c3f168 Fix reload: 14 years ago
  robert 5223656147 Add rc.d(8) script for the system daemons that are restartable. 14 years ago
  schwarze 109aa56fb5 let reload report (ok) or (failed) just like all other actions; 14 years ago
  schwarze bfd452983a Refactoring for simplicity, no functional change: 14 years ago
  ajacoutot 04a7f743a5 Finally deal with background processes: "rc_cmd start" will now return 14 years ago
  ajacoutot 9105b7a552 Setting RC_DEBUG is enough, it does not need to be explicitely set to 14 years ago
  schwarze f0d2d46242 Fix multiple issues and make the code simpler and more robust: 14 years ago
  robert 7c823347e2 - in case reload fails, print the failed message (from Piotr Sikora) 14 years ago
  ajacoutot 825be14a44 Remove leading/trailing spaces from daemon_flags. 14 years ago
  guenther 42ff9a744e Handle a daemon_flags of '-n' by using printf '%s\n' instead of echo 14 years ago
  ajacoutot 49f4d1d744 Quote $daemon_flags to prevent echo(1) picking them as input flags. 14 years ago
  ajacoutot 92369eed7f Bump timeout to 30s. 14 years ago
  robert ea651f538f if daemon_flags=NO is set, just exit 14 years ago
  ian cb8b6fd3fc Since we now use pkill -0 for "check", it must be run as root, 14 years ago
  robert a429adb42b - introduce the INRC environment variable so that rc.subr(8) knows if it 14 years ago
  ajacoutot 045e6e479f Return proper codes so that we don't rc_start if rc_pre failed and we 14 years ago
  ajacoutot ece0bd2a32 Add a small comment at the top to explain what this file does. 14 years ago
  ajacoutot ec3e2016f6 Make reload and check consistent with start/stop. 14 years ago
  ajacoutot 816fefe813 Move the redirections into the rc_cmd itself instead of rc_start and 14 years ago
  ajacoutot 4d16621cc3 Move rc_pre and rc_post out of the rc_start/rc_stop functions into the 14 years ago
  ajacoutot 31b7e1a52c Add an "rc_bg" variable that is undefined by default and allows to start 14 years ago
  ajacoutot 0895d6d8a2 Remove daemon_shell and force the use of /bin/sh for the su(1) call. 14 years ago
  ajacoutot 00107b2b9e Put the "su -c ..." command into an rcexec variable so that we can 14 years ago
  ajacoutot 219ce41690 Check for a login class that match the rc script name and if we find one 14 years ago
  ajacoutot be1812f231 After the recent changes, there is no need for an rc_conf function. 14 years ago
  ajacoutot ff4f8c6619 There is no point in calling rc_conf manually from each and every rc 14 years ago
  ajacoutot 2f1b097008 Fix a flaw in the rc.subr framework reported by stephan@ where 14 years ago
  ajacoutot 9cf9abb40e Prefer '-l' over '-' which is deprecated. 14 years ago
  robert 90f75c52e5 simulate a full login with su, now that the environment is fine after 14 years ago
  ajacoutot c4b90b3612 Make it possible to mark an rc action as unsupported by setting the 14 years ago
  ajacoutot 0ac91ffd59 Sanitise daemon_flags: remove multiple whitespaces from _rcflags. 14 years ago
  robert 97fd28dab8 Do not overwrite the settings in the rc scripts itself, so use the same 14 years ago
  robert b8cf932a14 Add support for setting _user _class and _shell for a specific daemon, 14 years ago
  robert 5bbfd7b67c remove my debug printf 14 years ago
  robert d8008fb0fb After discussing with Ingo and Antoine we decided to rename 14 years ago
  robert 3f59bf9ad3 add $ 14 years ago
  ajacoutot cfcca0b7b6 Protect variable names, to be consistent with rc(8). 14 years ago
  robert bb62dcba0d Remove 'status', because 'check' is what is used internally and we don't 14 years ago
  robert f17fc3744c Missing redirection to /dev/null in rc_start 14 years ago
  robert 65db6172a9 quote $local_rcconf in [ ] and remove eval from rc_start() 14 years ago
  robert cfe71d6442 Add a simple 'rc' system to base in order to start/stop/restart/reload 14 years ago