diff options
Diffstat (limited to 'mail/exilog/files/exilog.sh')
-rw-r--r-- | mail/exilog/files/exilog.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mail/exilog/files/exilog.sh b/mail/exilog/files/exilog.sh new file mode 100644 index 000000000000..7cdb69601691 --- /dev/null +++ b/mail/exilog/files/exilog.sh @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Add the following lines to /etc/rc.conf to enable exilog agent: +# +#exilog_enable="YES" + +. %%RC_SUBR%% + +name=exilog +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/exilog_agent.pl +pidfile=/var/run/exilog.pid +required_files=%%PREFIX%%/etc/exilog.conf + +# read settings, set default values +load_rc_config $name +: ${exilog_enable="NO"} + +case $1 in + stop) + kill `cat $pidfile` + rm -f $pidfile + ;; + *) + run_rc_command "$1" + ;; +esac |