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`
|
if [ -d /var/install/sysvinit* ]; then
|
||||||
cd etc/init.d
|
WDIR=`pwd`
|
||||||
chmod 755 postgresql
|
cd etc/init.d
|
||||||
mkdir rc{0,1,2,3,4,5,6}.d
|
chmod 755 postgresql
|
||||||
for i in 0 1 2 6; do
|
mkdir rc{0,1,2,3,4,5,6}.d
|
||||||
cd rc$i.d
|
for i in 0 1 2 6; do
|
||||||
ln -s ../postgresql K25postgresql
|
cd rc$i.d
|
||||||
cd ..
|
ln -s ../postgresql K25postgresql
|
||||||
done
|
cd ..
|
||||||
for i in 3 4 5; do
|
done
|
||||||
cd rc$i.d
|
for i in 3 4 5; do
|
||||||
ln -s ../postgresql S25postgresql
|
cd rc$i.d
|
||||||
cd ..
|
ln -s ../postgresql S25postgresql
|
||||||
done
|
cd ..
|
||||||
cd $WDIR
|
done
|
||||||
~
|
cd $WDIR
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user