Vorberitung auf upstart

git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_sendmail@5549 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2010-04-20 19:18:26 +00:00
parent daf5729c23
commit 01676bcd77
2 changed files with 35 additions and 18 deletions

15
etc/init/smtp.conf Normal file
View File

@ -0,0 +1,15 @@
description "sendmail Daemon startup"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on (runlevel [2345] and (started ifup))
stop on runlevel [S016]
console none
script
if [ -f /etc/mail/sendmail.cf ]; then
/usr/sbin/sendmail -bD -q30m -om
fi
end script

View File

@ -34,6 +34,7 @@
# #
# #
if [ -d /var/install/sysvinit ]; then
WDIR=`pwd` WDIR=`pwd`
mkdir -p etc/mail mkdir -p etc/mail
touch etc/mail/local-host-names touch etc/mail/local-host-names
@ -52,3 +53,4 @@ for i in 3 4 5; do
cd .. cd ..
done done
cd $WDIR cd $WDIR
fi