source: src-sh/warden/scripts/rc.d/wardenrc @ 0988d23

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since 0988d23 was 0988d23, checked in by Kris Moore <kris@…>, 16 months ago

Add my working directory for the new warden backend changes.

Includes patches from John Hixson (john@…) to change
how warden uses "nicknames" instead of IP addresses for jail
identification.

  • Property mode set to 100755
File size: 421 bytes
Line 
1#!/bin/sh
2
3# PROVIDE: warden
4# REQUIRE: DAEMON
5# KEYWORD: nojail shutdown
6
7. /etc/rc.subr
8
9name="warden"
10rcvar=`set_rcvar`
11
12stop_cmd="warden_stop"
13start_cmd="warden_start"
14
15load_rc_config $name
16
17: ${warden_enable=NO}
18
19warden_start()
20{
21  PROGDIR="/usr/local/share/warden"
22  $PROGDIR/scripts/rc.d/startup.sh
23}
24
25warden_stop()
26{
27  PROGDIR="/usr/local/share/warden"
28  $PROGDIR/scripts/rc.d/shutdown.sh
29}
30
31run_rc_command "$1"
32
Note: See TracBrowser for help on using the repository browser.