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:
parent
daf5729c23
commit
01676bcd77
15
etc/init/smtp.conf
Normal file
15
etc/init/smtp.conf
Normal 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
|
38
init/genpkg
38
init/genpkg
@ -34,21 +34,23 @@
|
||||
#
|
||||
#
|
||||
|
||||
WDIR=`pwd`
|
||||
mkdir -p etc/mail
|
||||
touch etc/mail/local-host-names
|
||||
mkdir -p var/spool/mqueue
|
||||
cd etc/init.d
|
||||
chmod 755 smtp
|
||||
mkdir rc{0,1,2,3,4,5,6}.d
|
||||
for i in 0 1 2 6; do
|
||||
cd rc$i.d
|
||||
ln -s ../smtp K70smtp
|
||||
cd ..
|
||||
done
|
||||
for i in 3 4 5; do
|
||||
cd rc$i.d
|
||||
ln -s ../smtp S20smtp
|
||||
cd ..
|
||||
done
|
||||
cd $WDIR
|
||||
if [ -d /var/install/sysvinit ]; then
|
||||
WDIR=`pwd`
|
||||
mkdir -p etc/mail
|
||||
touch etc/mail/local-host-names
|
||||
mkdir -p var/spool/mqueue
|
||||
cd etc/init.d
|
||||
chmod 755 smtp
|
||||
mkdir rc{0,1,2,3,4,5,6}.d
|
||||
for i in 0 1 2 6; do
|
||||
cd rc$i.d
|
||||
ln -s ../smtp K70smtp
|
||||
cd ..
|
||||
done
|
||||
for i in 3 4 5; do
|
||||
cd rc$i.d
|
||||
ln -s ../smtp S20smtp
|
||||
cd ..
|
||||
done
|
||||
cd $WDIR
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user