1db0b7c2bd
- Fix config file location - Remove pkg-plist - Fix sendmail call: https://sourceforge.net/tracker/?func=detail&atid=615953&aid=1588317&group_id=96801
37 lines
593 B
Bash
37 lines
593 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: p3scan
|
|
# REQUIRE: DAEMON
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable p3scan:
|
|
# p3scan_enable="YES"
|
|
#
|
|
# Optional:
|
|
# p3scan_config="%%PREFIX%%/etc/p3scan/p3scan.conf
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name=p3scan
|
|
rcvar=`set_rcvar`
|
|
|
|
required_files=%%PREFIX%%/etc/p3scan/p3scan.conf
|
|
|
|
# set defaults
|
|
|
|
p3scan_enable=${p3scan_enable:-"NO"}
|
|
p3scan_config=${p3scan_config:-"%%PREFIX%%/local/etc/p3scan/p3scan.conf"}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|
|
|
|
start_cmd="p3scan_start"
|
|
|
|
p3scan_start()
|
|
{
|
|
%%PREFIX%%/sbin/p3scan -f ${p3scan_config}
|
|
}
|
|
|
|
run_rc_command "$1"
|