summaryrefslogtreecommitdiff
path: root/etc/rc.d/rc.subr
AgeCommit message (Expand)Author
2024-09-29sync synopsis and usage, sort commands, fix their spacingKlemens Nanni
2024-01-17Zap trailing space.Antoine Jacoutot
2023-12-15Run non-daemons services in a different process group to avoid SIGHUP at bootJeremie Courreges-Anglas
2022-10-19Drop support for $rcexec; people should now use the rc_exec function.Antoine Jacoutot
2022-09-08_rc_quirks is only called by _rc_parse_conf, so just merge the two.Antoine Jacoutot
2022-09-02Make rc_configtest behave like rc_pre and rc_post; i.e. don't define a defaultAntoine Jacoutot
2022-09-01Add a new action: "configtest", to check configuration syntax of the daemon.Antoine Jacoutot
2022-08-29When using logger(1), also log the message to standard error so we don'tAntoine Jacoutot
2022-08-29Introduce the rc_configtest() function.Antoine Jacoutot
2022-05-26Introduce a new daemon_execdir variable for changing to a specified directoryAntoine Jacoutot
2022-05-21Replace the $rcexec variable by an rc_exec function.Antoine Jacoutot
2022-02-10look for the login class in both login.conf and login.conf.d/${class}Robert Nagy
2021-11-15Tidy up; no change.Antoine Jacoutot
2021-11-14Improve and simplify timer handling in "stop" and "reload".Antoine Jacoutot
2021-11-12Consistency in test; no behavior change.Antoine Jacoutot
2021-11-12Set SECONDS to 0 in _rc_wait.Antoine Jacoutot
2021-11-12Simplify _rc_exit.Antoine Jacoutot
2021-11-11Run "_rc_wait stop" _before_ stopping the daemon and not after...Antoine Jacoutot
2021-11-11Return 0 in case we reach KILL; this allows "restart" to work as expectedAntoine Jacoutot
2021-11-09check that the rc script including rc.subr is using ksh; rc.subr uses kshStuart Henderson
2021-11-08rc_reload_signal & rc_stop_signal are not rc.conf(8) variables; they'reAntoine Jacoutot
2021-11-07Speed up _rc_wait: only sleep 1/2 second between rc_check tries and make sureAntoine Jacoutot
2021-11-07Use built-in SECONDS instead of hand roller timer.Antoine Jacoutot
2021-11-06Always run _rc_rm_runfile when process is sent a SIGKILL or rc_post fails (atAntoine Jacoutot
2021-11-06Drop uneeded sleep.Antoine Jacoutot
2021-11-06Allow passing a different signal than SIGTERM in the default rc_stop()Antoine Jacoutot
2021-10-31Shuffle things around to have FUNCS_ONLY higher in the script so consummersAntoine Jacoutot
2021-02-27Add logger(1) support for daemons that are logging to stdout/stderr (mostly fromAntoine Jacoutot
2020-07-12Use su -fl to avoid sourcing /etc/profile / the target user's .profileJeremie Courreges-Anglas
2020-04-29Sort variables and fix a comment.Antoine Jacoutot
2020-02-22Do not run _rc_parse_conf of /var/run/rc.d/foobar on "start".Antoine Jacoutot
2019-09-07Remove dependency on basename(1).Antoine Jacoutot
2019-03-21Start in the daemon configured routing table and not in the one we're currentlyAntoine Jacoutot
2019-01-20The shell will strip the quotes from daemon_flags when starting a daemon so makeAntoine Jacoutot
2018-10-29Revert previous (for now).Antoine Jacoutot
2018-10-16Change the way we call su(1) in rcexec:Antoine Jacoutot
2017-06-05Temporarily disable the second call to rc_check until I figure out whatAntoine Jacoutot
2017-06-05Fix logic in _rc_wait to properly cope with setproctitle(3) daemons. It was aAntoine Jacoutot
2017-05-30Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off theTheo Buehler
2017-05-28Move check later to mitigate a possible race.Antoine Jacoutot
2017-05-28Indent and rename var; no functional change.Antoine Jacoutot
2017-05-28When a daemon reaches its timeout when starting, display "timeout" insteadAntoine Jacoutot
2017-05-28Drop useless lines continuation; no functional change.Antoine Jacoutot
2017-05-27Ok turns out we still want to keep the rc_bg variable around but we needAntoine Jacoutot
2017-05-27Add an ALRM timer to cope with 2 annoying issues in rc.d(8):Antoine Jacoutot
2017-02-17Stop supporting the historical way of starting ypbind(8); that is settingAntoine Jacoutot
2017-01-24Whitespace.Antoine Jacoutot
2016-09-07Introduce an _rc_check_name() function to check the input script name so thatAntoine Jacoutot
2016-08-31use tab.Antoine Jacoutot
2016-05-03signal name should be first, fixes reload; ok deraadt@Otto Moerbeek