# -*-Shell-script-*-
#
+# Thierry, jan 17 2013
+# this file was put together by Jordan to provide the same interface as
+# /etc/init.d/functions on fedora systems
+# (probably is extracted from one of the fedora releases as is, not sure about that)
+#
+# we unconditionnally ship this as /etc/init.d/functions.sfa,
+# and then our own initscript (init.d/sfa) does source that
+# conditionnally, i.e. when run on debian systems
+####################
+#
# functions This file contains functions to be used by most or all
# shell scripts in the /etc/init.d directory.
#
PGLOCK=/var/lock/subsys/postgresql
SFALOCK=/var/lock/subsys/sfa-start.pid
elif [ -f /etc/debian_version ] ; then
+ . /etc/init.d/funcfions.sfa
debian_get_postgresql_versions
PGDATA=/etc/postgresql/$pgver/main/
PGWATCH=postgres
]
# need to do something about functions
-initscripts = [ 'functions', 'sfa', 'sfa-cm' ]
+initscripts = [ 'sfa', 'sfa-cm', 'functions.sfa' ]
data_files = [ ('/etc/sfa/', [ 'config/aggregates.xml',
'config/registries.xml',