diff options
Diffstat (limited to 'packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh')
-rwxr-xr-x | packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh b/packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh new file mode 100755 index 0000000..e16ef59 --- /dev/null +++ b/packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# +# PROVIDE: radsecproxy +# REQUIRE: network +# + +if [ -f /etc/rc.subr ] +then + . /etc/rc.subr +fi + +name="radsecproxy" +rcvar=${name} +command="/usr/pkg/sbin/${name}" +command_args="-c /usr/pkg/etc/${name}/${name}.conf" + +if [ -f /etc/rc.subr ] +then + load_rc_config $name + run_rc_command "$1" +else + echo -n ' ${name}' + exec ${command} ${command_args} +fi |