Commit Graph

8 Commits

Author SHA1 Message Date
lukem 96e2ff62c8 Add two new rc.conf(5) variables:
rc_rcorder_flags		extra flags to rcorder(8) in /etc/rc
    rcshutdown_rcorder_flags	extra flags to rcorder(8) in /etc/rc.shutdown

This can be used to specify extra directories to search for rc.d scripts in.
For example, adding the following to rc.conf(5):
	rc_rcorder_flags="/usr/pkg/etc/rc.d/*"
	rcshutdown_rcorder_flags="/usr/pkg/etc/rc.d/*"
will add the files in /usr/pkg/etc/rc.d to the list of files that rcorder(8)
uses to build the list of scripts to start or stop.

I proposed this functionality on tech-userlevel@ over one month ago.
Closes the recent [misc/16888], which asked for a similar feature.
2002-05-19 01:01:32 +00:00
lukem 6a4937a4c8 use reverse_list() (from rc.subr) to reverse the list 2001-11-19 03:19:28 +00:00
lukem 586521f84e - Implement an optional global watchdog timeout for rc.shutdown, which is
enabled by setting $rcshutdown_timeout to a number of seconds to wait for
  before terminating rc.shutdown.  This is disabled by default.
- Use symbolic names rather than numbers when defining a trap.
- Improve some comments.
2001-06-16 04:09:19 +00:00
lukem 6eef11f223 - describe what rc.shutdown does, and what invokes it
- remove `.sh' suffix on script name in description
2000-12-15 00:00:09 +00:00
lukem d046f31b64 run rcorder with `-k shutdown', so that only the scripts with a
`shutdown' keyword get run at shutdown time.
2000-07-17 15:23:28 +00:00
lukem c595577502 if checkyesno do_rcshutdown, run scripts in /etc/rc.d/* in the
reverse order returned by rcorder
2000-03-10 13:17:25 +00:00
tron d7a2e284b1 Check for location of xdm's pid file as suggested by Simon Burge.
Fixes PR misc/6828 by Paul Goyette.
1999-01-18 20:41:54 +00:00
bad 96cda5fe94 A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES).  Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).
1998-10-29 20:24:56 +00:00