summaryrefslogtreecommitdiff
path: root/debian/sendmail.init.d.in
diff options
context:
space:
mode:
Diffstat (limited to 'debian/sendmail.init.d.in')
-rw-r--r--debian/sendmail.init.d.in42
1 files changed, 42 insertions, 0 deletions
diff --git a/debian/sendmail.init.d.in b/debian/sendmail.init.d.in
new file mode 100644
index 0000000..5e72517
--- /dev/null
+++ b/debian/sendmail.init.d.in
@@ -0,0 +1,42 @@
+#!/bin/sh -e
+#
+# $Sendmail: init.d,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $
+#
+# Sendmail rc script for Debian (/etc/init.d/sendmail)
+#
+# Copyright (c) 2001-@SM_CPYRT@, Richard Nelson <cowboy@debian.org>.
+#
+# Notes (to all):
+# * *** Do not edit this file *** Instead edit /etc/mail/sendmail.conf
+#
+# Notes (to self):
+# *
+#
+set -e;
+PATH=/bin:/usr/bin:/sbin:/usr/sbin;
+
+# All the real work is done by helper functions defined herein (really!)
+if [ ! -x @datadir@/sendmail/sendmail ]; then
+ echo "@datadir@/sendmail/sendmail not found/executable, aborting.";
+ exit 1;
+ fi;
+. @datadir@/sendmail/sendmail;
+
+exit 0
+
+# Control never reaches here, but lets keep lintian from bitching...
+case "$1" in
+ start)
+ ;;
+ stop)
+ ;;
+ restart)
+ ;;
+ restart-if-running)
+ ;;
+ reload|force-reload)
+ ;;
+ *)
+ ;;
+ esac;
+exit 0;