home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.mandriva      Somewhat decent but also getting bloated      29,919 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 29,362 of 29,919   
   Grimble to All   
   Starting processes in rc.local   
   07 Aug 13 16:10:48   
   
   From: grimble@nomail.afraid.org   
      
   I use this command in /etc/rc.d/rc.local to start postgresql:   
   su -c '/usr/local/pgsql/bin/pg_ctl start -D /local/opt/pgsql/data -l   
   /tmp/logfile' postgres   
      
   I assume that starting this process is asynchronous.   
   How can I tell that postgresql is ready to accept data from another   
   application that gets started by the following command in rc.local?   
   Should I just test for the existence of the socket .s.PGSQL.54323?   
   Thanks   
   --   
   Grimble   
   Registered Linux User #450547   
   Running KDE 4.6.5  on 2.6.39.4-5.1-desktop kernel.   
   Mandriva Linux release 2011.0 (Official) for x86_64   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca