platform id changed in foglamp.service
#!/bin/sh
-# Debian specific
-platform=$([ `cat /etc/os-release | grep -c -i -E "centos|red hat"` -eq 0 ] && echo debian || echo redhat)
-if [[ $platform == "debian" ]]
-then
+PLATFORM=`(lsb_release -ds 2>/dev/null || cat /etc/*release 2>/dev/null | head -n1 || uname -om) | egrep '(Red Hat|CentOS)' || echo ""`
+
+# RedHat specific
+if [ "$PLATFORM" = "" ]; then
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
fi
+
### BEGIN INIT INFO
# Provides: foglamp
# Required-Start: $local_fs $remote_fs $syslog $network $time
