#!/bin/sh # $FreeBSD$ # # FreeBSD boot time start up script for vserver(8). # # PROVIDE: vserver # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable vserver: # # vserver_enable="YES" # # Additional commandline qualifiers to be passed to vserver(8) may # be specified in /etc/rc.conf by adding: # # vserver_flags="" # # See vserver(8) for a detailed description of vserver commandline qualifiers. # . /etc/rc.subr name=vserver rcvar=vserver_enable command=%%PREFIX%%/sbin/vserver required_files=%%PREFIX%%/etc/vchat/user.db # read settings, set default values load_rc_config "$name" : ${vserver_enable="NO"} : ${vserver_flags="/SYSLOG"} : ${vserver_user="vchat"} : ${vserver_group="vchat"} : ${vserver_pidfile="%%PREFIX%%/etc/vchat/vserver.pid"} command_args="/DETACH" run_rc_command "$1"