avoid using rpm
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 22 Jan 2013 07:12:48 +0000 (08:12 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 22 Jan 2013 07:12:48 +0000 (08:12 +0100)
init.d/sfa

index d5b0bb4..45b6981 100755 (executable)
@@ -244,7 +244,7 @@ function db_start () {
 
     ######## Start up the server
     # not too nice, but.. when co-located with myplc we'll let it start/stop postgresql
-    if ! rpm -q myplc >& /dev/null ; then
+    if [ ! -f /etc/myplc-release ] ; then
        echo STARTING...
        service postgresql start >& /dev/null
     fi