diff options
Diffstat (limited to 'net-mail/vm-pop3d/files')
-rw-r--r-- | net-mail/vm-pop3d/files/vm-pop3d.confd | 8 | ||||
-rw-r--r-- | net-mail/vm-pop3d/files/vm-pop3d.rc3 | 20 |
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 ${@} - - |