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

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

Initial import of PC-BSD /current/ SVN repo

  • 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.