diff options
Diffstat (limited to 'ftp/proftpd-devel/files/proftpd.sh.in')
-rw-r--r-- | ftp/proftpd-devel/files/proftpd.sh.in | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ftp/proftpd-devel/files/proftpd.sh.in b/ftp/proftpd-devel/files/proftpd.sh.in new file mode 100644 index 000000000000..b36f36dcb992 --- /dev/null +++ b/ftp/proftpd-devel/files/proftpd.sh.in @@ -0,0 +1,41 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: proftpd +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable proftpd: +# +#proftpd_enable="YES" +# +# See proftpd(8) for flags +# + +. %%RC_SUBR%% + +name=proftpd +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/proftpd +pidfile=/var/run/proftpd.pid +required_files=%%PREFIX%%/etc/proftpd.conf + +stop_postcmd=stop_postcmd + +stop_postcmd() +{ + rm -f $pidfile +} + +# set defaults + +proftpd_enable=${proftpd_enable:-"NO"} +proftpd_flags=${proftpd_flags:-""} + +load_rc_config $name +run_rc_command "$1" |