Compare commits
No commits in common. "v961" and "v963" have entirely different histories.
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 [016]
|
||||
|
||||
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
|
21
init/genpkg
21
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
|
||||
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
|
||||
done
|
||||
for i in 3 4 5; do
|
||||
cd rc$i.d
|
||||
ln -s ../postgresql S25postgresql
|
||||
cd ..
|
||||
done
|
||||
cd $WDIR
|
||||
~
|
||||
done
|
||||
cd $WDIR
|
||||
fi
|
||||
|
83
tmp/postremove
Normal file
83
tmp/postremove
Normal file
@ -0,0 +1,83 @@
|
||||
#!/bin/bash
|
||||
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||
#dieses Framework wird im CVS Repository
|
||||
#:pserver:cvs.rainmaker-mm.de/RMM/cvs zur Verfügung gestellt
|
||||
#
|
||||
#Lage dieser Datei im Archiv: $Source$
|
||||
#
|
||||
#(c) Rainmaker MultiMedia OHG
|
||||
#This program is free software; you can redistribute it and/or
|
||||
#modify ist under the terms of the GNU General Public License
|
||||
#as published by the Free Software Foundation; either version
|
||||
#2 of the License, or (at your option) any later version.
|
||||
#
|
||||
#This program is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#See the GNU General Public License for more details.
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program; if not write to the Free Software Foundation,
|
||||
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
#Beschreibung:
|
||||
#Postinstall Script für postgresql
|
||||
#
|
||||
#Aufrufparameter:
|
||||
#keine
|
||||
#
|
||||
#Letzte Änderung von: $Author$
|
||||
#Datum der letzten Änderung: $Date$
|
||||
#Version der Datei: $Revision$
|
||||
#
|
||||
#$Log$
|
||||
#Revision 1.12 2007/04/29 12:15:20 kueller
|
||||
#postgres erhaelt jetzt fest die uid 49
|
||||
#
|
||||
#Revision 1.11 2006/10/25 12:08:49 kueller
|
||||
#Anpassung an 32/64 Bit Viitor
|
||||
#
|
||||
#Revision 1.10 2002/10/09 07:59:51 kueller
|
||||
#Anpassungen an neuen chroot Modus von installpkg. Parameter $1 nicht mehr
|
||||
#notwendig, da chroot auf $1 ausgeführt wird. Script entsprechend Angepasst.
|
||||
#Ausserdem anpassung des Headers an neue GPLizes Standart Header.
|
||||
#
|
||||
#
|
||||
#Revision 1.9 2001/12/11 11:58:17 kueller
|
||||
#Korrektur kleinerer Fehler. Segmention fault nachwievor bei installation.
|
||||
#/tmp/inidb.$$ kann nicht gelesen werden (rechte) - fuehrt dazu, dass
|
||||
#initdb nach dem vacuuming der Datenbank mit einem segmention fault abbricht.
|
||||
#Kann durch Loeschen des Datenbank Verzeichnisses (nur den Inhalt!), sowie einem
|
||||
#neuerlichen lauf von initdb (unter user postgres) behoben werden - funktioniert
|
||||
#bei haendischem aufruf!
|
||||
#
|
||||
#Revision 1.8 2001/12/11 11:33:59 kueller
|
||||
#sed aufruf korrigiert (unterminated s command)
|
||||
#
|
||||
#Revision 1.7 2001/12/11 11:20:46 kueller
|
||||
#Rechte von /opt/PostgreSQL werden nun korrigiert. Setzen von defaultpath fuer
|
||||
#die Datenbanken korrigiert.
|
||||
#
|
||||
#Revision 1.6 2001/11/03 21:52:26 segler
|
||||
#
|
||||
#initdb haette den postmaster gerne am laufen. Daher tuen wir ihm den Gefallen und starten /etc/init.d/postgresql start, das zu diesem Zeitpunkt anwesend sein sollte. Dafuer legt initdb <dingenskirchen>/data mit entsprechenden Rechten selber an.
|
||||
#
|
||||
#Revision 1.5 2001/10/10 19:40:55 kueller
|
||||
#Diverse Korrekturen -
|
||||
#Doppelte Read Abfrage für DATADIR wenn nicht default entfernt
|
||||
#$1 wird nun ausgewertet und als alternativer installpath
|
||||
#verwendet (unattendet Installation)
|
||||
#
|
||||
#Revision 1.4 2001/10/08 08:34:51 kueller
|
||||
#cvs header hinzugefügt
|
||||
#
|
||||
#
|
||||
|
||||
LIBINST=`grep "/opt/PostgreSQL/lib" /etc/ld.so.conf`
|
||||
if [ "$LIBINST" ]; then
|
||||
sed -i -e "/\/opt\/PostgreSQL\/lib/d" /etc/ld.so.conf
|
||||
sed -i -e "/\/opt\/PostgreSQL\/lib64/d" /etc/ld.so.conf
|
||||
fi
|
||||
if getent passwd postgres; then
|
||||
userdel postgres
|
||||
fi
|
Loading…
Reference in New Issue
Block a user