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.
26 lines
422 B
Bash
26 lines
422 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: ss5
|
|
# REQUIRE: LOGIN
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
# ss5_enable (bool): Set to NO by default.
|
|
# Set it to YES to enable ss5.
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="ss5"
|
|
rcvar=ss5_enable
|
|
pidfile="/var/run/ss5/ss5.pid"
|
|
command=%%PREFIX%%/sbin/${name}
|
|
|
|
load_rc_config $name
|
|
|
|
: ${ss5_enable="NO"}
|
|
: ${ss5_flags="-t"}
|
|
|
|
run_rc_command "$1"
|