mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
83eb2c3700
literal name_enable wherever possible, and ${name}_enable when it's not, to prepare for the demise of set_rcvar(). In cases where I had to hand-edit unusual instances also modify formatting slightly to be more uniform (and in some cases, correct). This includes adding some $FreeBSD$ tags, and most importantly moving rcvar= to right after name= so it's clear that one is derived from the other.
44 lines
869 B
Bash
44 lines
869 B
Bash
#!/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="<your commandline qualifiers here>"
|
|
#
|
|
# 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"
|