Commit Graph

4 Commits

Author SHA1 Message Date
lukem 1a286b1407 - Rename a bunch of "internal" run_rc_command() variables and officially
make them "externally" available:
	Previous	Current		Purpose
	--------	-------		-------
	_arg		rc_arg		Argument to command, after fast/force
					processing performed (and prefix
					removed)

	_flags		rc_flags	Flags to start the default command
					with.  Defaults to ${name}_flags,
					unless overridden by $flags from the
					environment.  This variable may be
					changed by the precmd method.

	_pid		rc_pid		PID of command (if appropriate).

	_rc_run_fast	rc_fast		Not empty is "fast" was provided.

	_rc_run_force	rc_force	Not empty is "force" was provided.

- Use rc_flags instead of _flags or ${name}_flags in various rc.d scripts,
  so that $flags from the environment overrides ${name}_flags from rc.conf(5).
  Fixes [bin/15800].
2002-03-22 04:16:38 +00:00
lukem 84ea7917fd - Remove previous hack; rc.subr warns about the variable not being set
for a reason, which is usually ``your /etc/defaults/rc.conf is not up
  to date''.
- Consolidate `rm's into one line.
2002-02-11 13:55:42 +00:00
martti 89122f4056 Don't try to execute this script if ipfs is not set to YES. Otherwise
you'll see the following message:

   # /etc/rc.d/ipfs stop
   /etc/rc.d/ipfs: WARNING: $ipfs is not set properly.

This horrible change is needed because of the "shutdown" keyword.
2002-02-11 13:39:14 +00:00
martti d7bcd10a27 ipfs allows state information created for NAT entries and rules using
keep state to be locked (modification prevented) and then saved to disk,
allowing for the system to experience a reboot, followed by the restoration
of that information, resulting in connections not being interrupted.

To activate this feature, set ipfs=YES in /etc/rc.conf
2002-02-11 10:19:55 +00:00