Vorbereitung auf upstart
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_postgresql@5543 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
57e60a9a48
commit
ff90ba219c
15
etc/init/postgresql.conf
Normal file
15
etc/init/postgresql.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
description "Startup MySQL DAtabase"
|
||||
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
|
||||
source /etc/init/functions
|
||||
source /etc/sysconfig/profile.d/PostgreSQL
|
||||
su - postgres -c "/opt/PostgreSQL/bin/postmaster $PGNE -D $PGDATA"
|
||||
end script
|
33
init/genpkg
33
init/genpkg
|
@ -27,19 +27,20 @@
|
|||
#
|
||||
#
|
||||
|
||||
WDIR=`pwd`
|
||||
cd etc/init.d
|
||||
chmod 755 postgresql
|
||||
mkdir rc{0,1,2,3,4,5,6}.d
|
||||
for i in 0 1 2 6; do
|
||||
cd rc$i.d
|
||||
ln -s ../postgresql K25postgresql
|
||||
cd ..
|
||||
done
|
||||
for i in 3 4 5; do
|
||||
cd rc$i.d
|
||||
ln -s ../postgresql S25postgresql
|
||||
cd ..
|
||||
done
|
||||
cd $WDIR
|
||||
~
|
||||
if [ -d /var/install/sysvinit* ]; then
|
||||
WDIR=`pwd`
|
||||
cd etc/init.d
|
||||
chmod 755 postgresql
|
||||
mkdir rc{0,1,2,3,4,5,6}.d
|
||||
for i in 0 1 2 6; do
|
||||
cd rc$i.d
|
||||
ln -s ../postgresql K25postgresql
|
||||
cd ..
|
||||
done
|
||||
for i in 3 4 5; do
|
||||
cd rc$i.d
|
||||
ln -s ../postgresql S25postgresql
|
||||
cd ..
|
||||
done
|
||||
cd $WDIR
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user