summaryrefslogtreecommitdiff
path: root/scripts/proxsmtpd.sh
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-10-18 22:54:51 +0000
committerStef Walter <stef@memberwebs.com>2004-10-18 22:54:51 +0000
commit8ffd57b3fe8fb56d77dde340af147255ce73ad1c (patch)
tree7b01b3934b77a648dd9bc3a1fdf86b4afd8d52a2 /scripts/proxsmtpd.sh
parent456d7cc777068bc31a529d6b05ceeb1826b9fece (diff)
Added sample scripts.
Diffstat (limited to 'scripts/proxsmtpd.sh')
-rw-r--r--scripts/proxsmtpd.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/scripts/proxsmtpd.sh b/scripts/proxsmtpd.sh
new file mode 100644
index 0000000..d439336
--- /dev/null
+++ b/scripts/proxsmtpd.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+###########################################################################
+# CONFIGURATION
+
+# Most configuration options are found in the proxsmtpd.conf file.
+# For more info see:
+# man proxsmtpd.conf
+
+# The prefix proxsmtpd was installed to
+prefix=/usr/local/
+
+# The location for pid file
+piddir=/var/run/
+
+###########################################################################
+# SCRIPT
+
+case $1 in
+start)
+ mkdir -p $piddir
+ chown $user $piddir
+ $prefix/sbin/proxsmtpd -p $piddir/proxsmtpd.pid
+ echo -n "proxsmtpd "
+ ;;
+stop)
+ [ -f $piddir/proxsmtpd.pid ] && kill `cat $piddir/proxsmtpd.pid`
+ echo -n "proxsmtpd "
+ ;;
+*)
+ echo "usage: proxsmptd.sh {start|stop}" >&2
+ ;;
+esac