Re: PostgreSQL With Slackware - Mailing list pgsql-admin

From Grega Bremec
Subject Re: PostgreSQL With Slackware
Date
Msg-id 20040623074615.GA18896@elbereth.noviforum.si
Whole thread Raw
In response to Re: PostgreSQL With Slackware  (Grega Bremec <grega.bremec@noviforum.si>)
List pgsql-admin
...and on Wed, Jun 23, 2004 at 08:53:01AM +0200, Grega Bremec used the keyboard:
>
> Recap - patch /etc/rc.d/rc.sysvinit with the attached patch, create
>
>     $ mkdir /etc/rc.d/{init,rc{0,1,2,3,4,5,6}}.d

Eeek, seems there's been a mismatch in the original source file
I used to create the patch... It should go as follows:

----CUT-HERE----
--- rc.sysvinit-old    2004-06-23 09:44:24.000000000 +0200
+++ rc.sysvinit-new    2004-06-23 09:44:51.000000000 +0200
@@ -40,14 +40,15 @@
   export prevlevel
 fi

-# Run kill scripts in the previous runlevel if not "none"
-if [ ! "$prevlevel" = "N" ]; then
-  for script in /etc/rc.d/rc$prevlevel.d/K* ; do
-    if [ -x $script ]; then
-      startup $script stop
-    fi
-  done
+# Run kill scripts
+if [ "$runlevel" = "S" ]; then
+  runlevel=1
 fi
+for script in /etc/rc.d/rc$runlevel.d/K* ; do
+  if [ -x $script ]; then
+    startup $script stop
+  fi
+done

 # Now do the startup scripts:
 for script in /etc/rc.d/rc$runlevel.d/S* ; do
----CUT-HERE----

My sincere apologies for the mixup.

Cheers,
--
    Grega Bremec
    Senior Administrator
    Noviforum Ltd., Software & Media
    http://www.noviforum.si/

Attachment

pgsql-admin by date:

Previous
From: Aryan Ariel Rodriguez Chalas
Date:
Subject: Problems with the connection to a Remote Database.
Next
From: juanmime@ono.com
Date:
Subject: Asunto: Re: Problems restoring a DB with oids