summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hadaway <raker@gentoo.org>2002-09-25 17:00:56 +0000
committerNick Hadaway <raker@gentoo.org>2002-09-25 17:00:56 +0000
commit139d1403a7a38b16cf4091e19e07352bed3e6504 (patch)
tree5c6993b79474d48589e2dc18ab7f73372407e662 /net-mail/vm-pop3d/files
parentNew ipv6 patch. It squashes the ssl patch though. :~| Masked. (diff)
downloadgentoo-2-139d1403a7a38b16cf4091e19e07352bed3e6504.tar.gz
gentoo-2-139d1403a7a38b16cf4091e19e07352bed3e6504.tar.bz2
gentoo-2-139d1403a7a38b16cf4091e19e07352bed3e6504.zip
Fix some init script problems and changed command line parameters for
starting vm-pop3d
Diffstat (limited to 'net-mail/vm-pop3d/files')
-rw-r--r--net-mail/vm-pop3d/files/vm-pop3d.confd8
-rw-r--r--net-mail/vm-pop3d/files/vm-pop3d.rc320
2 files changed, 13 insertions, 15 deletions
diff --git a/net-mail/vm-pop3d/files/vm-pop3d.confd b/net-mail/vm-pop3d/files/vm-pop3d.confd
index 74eb1079e36f..55e60f2fb46d 100644
--- a/net-mail/vm-pop3d/files/vm-pop3d.confd
+++ b/net-mail/vm-pop3d/files/vm-pop3d.confd
@@ -1,2 +1,6 @@
-# Command-line options for running exim
-VM-POP3D_OPTS="-d5 -t 600"
+# Command-line options for running vm-pop3d
+# -d <number of daemons to start>
+# -t <timeout in seconds>
+# -p <port to run the pop server on>
+
+OPTS="-d 5 -t 600 -p 110"
diff --git a/net-mail/vm-pop3d/files/vm-pop3d.rc3 b/net-mail/vm-pop3d/files/vm-pop3d.rc3
index fd7dc6eaab9c..eb1e982bcc76 100644
--- a/net-mail/vm-pop3d/files/vm-pop3d.rc3
+++ b/net-mail/vm-pop3d/files/vm-pop3d.rc3
@@ -1,24 +1,21 @@
-#!/bin/sh
-#RCUPDATE:2 3 4:75:This line is required for script management
-
-. /etc/rc.d/config/functions
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-mail/vm-pop3d/files/vm-pop3d.rc3,v 1.2 2002/09/25 17:00:56 raker Exp $
SERVICE=vm-pop3d
+
opts="start stop restart"
-PIDFILE=/var/run/exim.pid
-EXE=/usr/sbin/vm-pop3d
start() {
ebegin "Starting $SERVICE..."
- start-stop-daemon --start --quiet --exec ${VM-POP3D_OPTS:-d5 -t 600}
- eend $? "Started $SERVICE." "Error Starting $SERVICE."
+ /usr/sbin/vm-pop3d $OPTS
}
stop() {
ebegin "Stopping $SERVICE..."
- start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $EXE
- eend $? "Stopped $SERVICE." "Error Stopping $SERVICE."
+ killall -15 /usr/sbin/vm-pop3d
}
restart() {
@@ -26,6 +23,3 @@ restart() {
start
}
-doservice ${@}
-
-