summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorschmonz <schmonz>2004-04-27 03:05:09 +0000
committerschmonz <schmonz>2004-04-27 03:05:09 +0000
commit4c9c344ba4b2c43845b5341776d8555898e1ffe1 (patch)
treea4c0ad46a534f496c031930d5c59fb72ef8113d7 /mail
parent28c9210e734fc1031077610968d35dd2cab781a9 (diff)
downloadpkgsrc-4c9c344ba4b2c43845b5341776d8555898e1ffe1.tar.gz
Explain why, after setting "command" in the usual way, we set it
again in foo_precmd() to a different value. This is an unusual usage, and these comments may help if a future rc.subr isn't as accommodating to such trickery. Suggested by lukem.
Diffstat (limited to 'mail')
-rw-r--r--mail/qmail/files/qmail.sh4
-rw-r--r--mail/qmail/files/qmailpop3d.sh5
-rw-r--r--mail/qmail/files/qmailsmtpd.sh5
3 files changed, 11 insertions, 3 deletions
diff --git a/mail/qmail/files/qmail.sh b/mail/qmail/files/qmail.sh
index 7354ea576d5..0b10892ede1 100644
--- a/mail/qmail/files/qmail.sh
+++ b/mail/qmail/files/qmail.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: qmail.sh,v 1.3 2004/04/10 05:30:06 schmonz Exp $
+# $NetBSD: qmail.sh,v 1.4 2004/04/27 03:05:09 schmonz Exp $
#
# PROVIDE: mail qmail
@@ -21,6 +21,8 @@ fi
qmail_precmd()
{
+ # qmail-start(8) starts the various qmail processes, then exits.
+ # qmail-send(8) is the process we want to signal later.
command="@SETENV@ - PATH=@QMAILDIR@/bin:$PATH qmail-start '$qmail_flags' splogger qmail"
command_args="&"
rc_flags=""
diff --git a/mail/qmail/files/qmailpop3d.sh b/mail/qmail/files/qmailpop3d.sh
index f0a8a54de6f..ec016ca4e6c 100644
--- a/mail/qmail/files/qmailpop3d.sh
+++ b/mail/qmail/files/qmailpop3d.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: qmailpop3d.sh,v 1.1 2004/04/24 05:29:36 schmonz Exp $
+# $NetBSD: qmailpop3d.sh,v 1.2 2004/04/27 03:05:09 schmonz Exp $
#
# PROVIDE: mail
@@ -21,6 +21,9 @@ fi
qmailpop3d_precmd()
{
+ # tcpserver(1) is akin to inetd(8), but runs one service per process.
+ # We want to signal only the tcpserver process responsible for POP
+ # service. Use argv0(1) to set procname to "qmailpop3d".
command="@SETENV@ - @LOCALBASE_NORMAL@/bin/argv0 @LOCALBASE_NORMAL@/bin/tcpserver $name $qmailpop3d_flags 0 110 @QMAILDIR@/bin/qmail-popup `@CAT@ @QMAILDIR@/control/me` @LOCALBASE_NORMAL@/bin/checkpassword @QMAILDIR@/bin/qmail-pop3d Maildir 2>&1 | @QMAILDIR@/bin/splogger pop3d 3"
command_args="&"
rc_flags=""
diff --git a/mail/qmail/files/qmailsmtpd.sh b/mail/qmail/files/qmailsmtpd.sh
index 284bf5655e0..ddb26ba94ad 100644
--- a/mail/qmail/files/qmailsmtpd.sh
+++ b/mail/qmail/files/qmailsmtpd.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: qmailsmtpd.sh,v 1.2 2004/04/24 05:29:36 schmonz Exp $
+# $NetBSD: qmailsmtpd.sh,v 1.3 2004/04/27 03:05:09 schmonz Exp $
#
# PROVIDE: mail
@@ -21,6 +21,9 @@ fi
qmailsmtpd_precmd()
{
+ # tcpserver(1) is akin to inetd(8), but runs one service per process.
+ # We want to signal only the tcpserver process responsible for SMTP
+ # service. Use argv0(1) to set procname to "qmailsmtpd".
command="@SETENV@ - @LOCALBASE_NORMAL@/bin/argv0 @LOCALBASE_NORMAL@/bin/tcpserver $name $qmailsmtpd_flags -u `@ID@ -u qmaild` -g `@ID@ -g qmaild` 0 25 @QMAILDIR@/bin/qmail-smtpd 2>&1 | @QMAILDIR@/bin/splogger smtpd 3"
command_args="&"
rc_flags=""