diff options
author | Peter Pentchev <roam@FreeBSD.org> | 2004-01-15 08:44:31 +0000 |
---|---|---|
committer | Peter Pentchev <roam@FreeBSD.org> | 2004-01-15 08:44:31 +0000 |
commit | 1c3d5ea87c6936962fb1d9a940328ce7a6c55f58 (patch) | |
tree | 87ba2ebacab722307fce39dd0a80431ca6486c76 /mail/vodmr/files | |
parent | Add xfce4-calendar 0.1.5, a calendar application to manage your time (diff) |
Add vodmr 0.13, an ODMR/ATRN server for vpopmail/qmail.
PR: 47002
Submitted by: James Raftery <james@now.ie>
Notes
Notes:
svn path=/head/; revision=98191
Diffstat (limited to 'mail/vodmr/files')
-rw-r--r-- | mail/vodmr/files/odmrd.sh-sample | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mail/vodmr/files/odmrd.sh-sample b/mail/vodmr/files/odmrd.sh-sample new file mode 100644 index 000000000000..a595ec9f63be --- /dev/null +++ b/mail/vodmr/files/odmrd.sh-sample @@ -0,0 +1,29 @@ +#!/bin/sh + +USER=vpopmail + +PREFIX=/usr/local + +UID=`id -u $USER` +GID=`id -g $USER` + +if [ -z "$UID" -o -z "$GID" ]; then + exit 1 +fi + +case "$1" in +start) + [ -x ${PREFIX}/sbin/odmrd -a -z ${PREFIX}/bin/tcpserver ] && \ + ${PREFIX}/bin/tcpserver -HPR -u$UID -g$GID 0 odmr \ + ${PREFIX}/sbin/odmrd > /dev/null && echo -n ' odmrd' + ;; +stop) + ps -auxwww | grep tcpserver | grep odmr | awk '{print $1}' | \ + xargs kill > /dev/null && echo -n ' odmrd' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 |