diff options
author | rafan <rafan@FreeBSD.org> | 2007-08-08 21:40:40 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-08-08 21:40:40 +0800 |
commit | ead60e72a299c5951bfcdb127ea68b60423c7292 (patch) | |
tree | 970b0c920b1fc81db1c7746d905fe8bf772d7695 /mail/mailgraph/files/mailgraph.in | |
parent | dea22c36fa5bb6ecf98b84345d198117ebc0f8a1 (diff) | |
download | freebsd-ports-graphics-ead60e72a299c5951bfcdb127ea68b60423c7292.tar.gz freebsd-ports-graphics-ead60e72a299c5951bfcdb127ea68b60423c7292.tar.zst freebsd-ports-graphics-ead60e72a299c5951bfcdb127ea68b60423c7292.zip |
- Strip .sh suffix for rc script for upcoming changes
Diffstat (limited to 'mail/mailgraph/files/mailgraph.in')
-rw-r--r-- | mail/mailgraph/files/mailgraph.in | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/mail/mailgraph/files/mailgraph.in b/mail/mailgraph/files/mailgraph.in new file mode 100644 index 00000000000..ffb1005e989 --- /dev/null +++ b/mail/mailgraph/files/mailgraph.in @@ -0,0 +1,38 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: mailgraph +# REQUIRE: DAEMON +# +# Add the following line to /etc/rc.conf to enable mailgraph: +# +# mailgraph_enable="YES" +# + +. %%RC_SUBR%% + +name=mailgraph +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/mailgraph.pl > /dev/null 2>&1 +command_interpreter=/usr/bin/perl +stop_postcmd=stop_postcmd + +stop_postcmd() +{ + rm -f $pidfile +} + +mailgraph_enable=${mailgraph_enable:-"NO"} +mailgraph_pidfile=${mailgraph_pidfile:-"%%DATADIR%%/mailgraph.pid"} +mailgraph_flags=${mailgraph_flags:-"--logfile /var/log/maillog --daemon-rrd=%%DATADIR%% --ignore-localhost --daemon --daemon-pid=${mailgraph_pidfile}"} +mailgraph_user=${mailgraph_user:-"%%MAILGRAPH_USER%%"} +mailgraph_group=${mailgraph_group:-"%%MAILGRAPH_GROUP%%"} +mailgraph_chdir=${mailgraph_chdir:-"%%DATADIR%%"} + +load_rc_config $name + +pidfile=${mailgraph_pidfile} + +run_rc_command "$1" |