diff options
Diffstat (limited to 'mail/qmail-run/files/qmailqread.sh')
-rw-r--r-- | mail/qmail-run/files/qmailqread.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mail/qmail-run/files/qmailqread.sh b/mail/qmail-run/files/qmailqread.sh index 17cca739097..9e3908e64f3 100644 --- a/mail/qmail-run/files/qmailqread.sh +++ b/mail/qmail-run/files/qmailqread.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: qmailqread.sh,v 1.3 2004/08/23 03:47:48 schmonz Exp $ +# $NetBSD: qmailqread.sh,v 1.4 2004/12/29 16:18:41 schmonz Exp $ # # @PKGNAME@ script to control a service providing local non-root # users access to see the queue. Adapted from a script by Steinar Haug. @@ -9,19 +9,20 @@ # PROVIDE: qmailqread mail # REQUIRE: qmailsend +name="qmailqread" + +# User-settable rc.conf variables and their default values: +: ${qmailqread_logcmd:="@LOCALBASE@/bin/setuidgid qmaill @LOCALBASE@/bin/splogger nb${name}"} + if [ -f /etc/rc.subr ]; then . /etc/rc.subr fi -name="qmailqread" rcvar=${name} command="@LOCALBASE@/bin/tcpserver" procname=${name} start_precmd="qmailqread_precmd" -# User-settable rc.conf variables and their default values: -qmailqread_logcmd=${qmailqread_logcmd-"@LOCALBASE@/bin/setuidgid qmaill @LOCALBASE@/bin/splogger nb${name}"} - qmailqread_precmd() { command="@SETENV@ - @LOCALBASE@/bin/argv0 @LOCALBASE@/bin/tcpserver ${name} -R -1 -u `@ID@ -u qmails` -g `@ID@ -g qmails` 127.0.0.1 20025 @LOCALBASE@/bin/qmail-qread 2>&1 | ${qmailqread_logcmd}" |