Merge branch 'upstreammaster' into senslab2
[sfa.git] / init.d / sfa
index 3162314..4815e37 100755 (executable)
@@ -6,8 +6,14 @@
 # hopefully right after plc
 # chkconfig: 2345 61 39
 #
-# description:   An implementation  of the SFA Architecture
-#
+### BEGIN INIT INFO
+# Provides:            sfa
+# Required-Start:      postgresql 
+# Required-Stop:       postgresql 
+# Default-Start:       2 3 4 5
+# Default-Stop:                0 1 6
+# Short-Description:   An implementation  of the SFA Architecture
+### END INIT INFO
 
 ####################
 # borrowed from postgresql
@@ -266,7 +272,7 @@ function db_start () {
        check
     fi
     check
-    # mention sfaadmin.py instead of just sfaadmin for people who do not install through rpm
+    # mention sfaadmin.py instead of just sfaadmin for safety
     sfaadmin.py reg sync_db
 
     MESSAGE=$"SFA: Checking for PostgreSQL server"