Start the stack automatically on boot error no runlevels, aborting

Hello
I cannot start the services automatically when starting my mac I installed stack ODOO 13 for OS X VM 64-bit, I have this error:
update-rc.d: error: bitnami-odoo Default-Start contains no runlevels, aborting.
Thank you

it was a white spaces in my script i solve it by removing the whites spaces but now when i execute the script i have this error :
Failed to enable unit: Unit /run/systemd/generator.late/bitnami-odoo.service is transient or generated
thank you

Hi @a.ashouba,

Could you paste your script here?

Regards,
Michiel

This is the sript code :

#!/bin/sh
### BEGIN INIT INFO
# Provides:          bitnami-odoo
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable services provided by daemon.
### END INIT INFO

# Allow only root execution
if [ `id|sed -e s/uid=//g -e s/\(.*//g` -ne 0 ]; then
    echo "This script requires root privileges"
    exit 1
fi


# Disabling SELinux if enabled
if [ -f "/usr/sbin/getenforce" ] && [ `id -u` = 0 ] ; then
    selinux_status=`/usr/sbin/getenforce`
    /usr/sbin/setenforce 0 2> /dev/null
fi

INSTALLDIR=/opt/bitnami

if [ -r "$INSTALLDIR/scripts/setenv.sh" ]; then
. "$INSTALLDIR/scripts/setenv.sh"
fi

ERROR=0
MARIADB_SCRIPT=$INSTALLDIR/mariadb/scripts/ctl.sh
MYSQL_SCRIPT=$INSTALLDIR/mysql/scripts/ctl.sh
MONGODB_SCRIPT=$INSTALLDIR/mongodb/scripts/ctl.sh
INGRES_SCRIPT=$INSTALLDIR/ingres/scripts/ctl.sh
PHPFPM_SCRIPT=$INSTALLDIR/php/scripts/ctl.sh
HHVM_SCRIPT=$INSTALLDIR/hhvm/scripts/ctl.sh
APACHE_SCRIPT=$INSTALLDIR/apache2/scripts/ctl.sh
VARNISH_SCRIPT=$INSTALLDIR/varnish/scripts/ctl.sh
NGINX_SCRIPT=$INSTALLDIR/nginx/scripts/ctl.sh
HYPERSONIC_SCRIPT=$INSTALLDIR/hypersonic/scripts/ctl.sh
SOLR_SCRIPT=$INSTALLDIR/apache-solr/scripts/ctl.sh
ELASTICSEARCH_SCRIPT=$INSTALLDIR/elasticsearch/scripts/ctl.sh
LOGSTASH_SCRIPT=$INSTALLDIR/logstash/scripts/ctl.sh
KIBANA_SCRIPT=$INSTALLDIR/kibana/scripts/ctl.sh
TOMCAT_SCRIPT=$INSTALLDIR/apache-tomcat/scripts/ctl.sh
RESIN_SCRIPT=$INSTALLDIR/resin/scripts/ctl.sh
REDIS_SCRIPT=$INSTALLDIR/redis/scripts/ctl.sh
SUBVERSION_SCRIPT=$INSTALLDIR/subversion/scripts/ctl.sh
LIBREOFFICE_SCRIPT=$INSTALLDIR/libreoffice/scripts/ctl.sh
#odoo_gevent_code_start
ODOO_GEVENT_SCRIPT=/opt/bitnami/apps/odoo/scripts/odoo_gevent.sh
#odoo_gevent_code_end
#odoo_background_worker_code_start
ODOO_BACKGROUND_WORKER_SCRIPT=/opt/bitnami/apps/odoo/scripts/odoo_background_worker.sh
#odoo_background_worker_code_end
#RUBY_APPLICATION_SCRIPT
LUCENE_SCRIPT=$INSTALLDIR/lucene/scripts/ctl.sh
ZOPE_SCRIPT=$INSTALLDIR/zope_application/scripts/ctl.sh
THIRD_SCRIPT=$INSTALLDIR/third_application/scripts/ctl.sh
POSTGRESQL_SCRIPT=$INSTALLDIR/postgresql/scripts/ctl.sh
NAGIOS_SCRIPT=$INSTALLDIR/nagios/scripts/ctl.sh
JETTY_SCRIPT=$INSTALLDIR/jetty/scripts/ctl.sh
MEMCACHED_SCRIPT=$INSTALLDIR/memcached/scripts/ctl.sh
RABBITMQ_SCRIPT=$INSTALLDIR/rabbitmq/scripts/ctl.sh
ACTIVEMQ_SCRIPT=$INSTALLDIR/activemq/scripts/ctl.sh

help() {
	echo "usage: $0 help"
	echo "       $0 (start|stop|restart|status)"
  if test -x $MARIADB_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) mariadb"
	fi
	if test -x $MYSQL_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) mysql"
	fi
  if test -x $POSTGRESQL_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) postgresql"
	fi
	if test -x $MONGODB_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) mongodb"
	fi
	if test -x $INGRES_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) ingres"
	fi
	if test -x $MEMCACHED_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) memcached"
	fi
	if test -x $PHPFPM_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) php-fpm"
	fi
	if test -x $HHVM_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) hhvm"
	fi
	if test -x $APACHE_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) apache"
	fi
	if test -x $VARNISH_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) varnish"
	fi
	if test -x $NGINX_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) nginx"
	fi
	if test -x $HYPERSONIC_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) hypersonic"
	fi
	if test -x $SOLR_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) solr"
	fi
	if test -x $ELASTICSEARCH_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) elasticsearch"
	fi
	if test -x $LOGSTASH_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) logstash"
	fi
    if test -x $KIBANA_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) kibana"
	fi
	if test -x $TOMCAT_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) tomcat"
	fi
	if test -x $RESIN_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) resin"
	fi
	if test -x $REDIS_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) redis"
	fi
	if test -x $SUBVERSION_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) subversion"
	fi
	if test -x $LIBREOFFICE_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) libreoffice"
	fi
        #odoo_gevent_code_start
        if test -x $ODOO_GEVENT_SCRIPT; then
            echo "       $0 (start|stop|restart|status) odoo_gevent"
        fi
        #odoo_gevent_code_end
        #odoo_background_worker_code_start
        if test -x $ODOO_BACKGROUND_WORKER_SCRIPT; then
            echo "       $0 (start|stop|restart|status) odoo_background_worker"
        fi
        #odoo_background_worker_code_end
        #RUBY_APPLICATION_HELP
	if test -x $LUCENE_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) lucene"
	fi
	if test -x $RABBITMQ_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) rabbitmq"
	fi
	if test -x $ACTIVEMQ_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) activemq"
	fi
	if test -x $ZOPE_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) zope_application"
	fi
	if test -x $THIRD_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) third_application"
	fi
	if test -x $NAGIOS_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) nagios"
	fi
	if test -x $JETTY_SCRIPT; then
	    echo "       $0 (start|stop|restart|status) jetty"
	fi
	cat <<EOF

help       - this screen
start      - start the service(s)
stop       - stop  the service(s)
restart    - restart or start the service(s)
status     - show the status of the service(s)

EOF
}


# Disable Monit
if [ -f "$INSTALLDIR/config/monit/bitnami.conf" ] && [ `id -u` = 0 ] && [ `which monit 2> /dev/null` ] && ( [ "x$1" = "xstop" ] || [ "x$1" = "xrestart" ] ); then
    if [ "x$2" = "x" ]; then
        env -i monit unmonitor all
    elif [ -f "$INSTALLDIR/config/monit/conf.d/$2.conf" ]; then
        env -i monit unmonitor $2
    fi
fi


if [ "x$1" = "xhelp" ] || [ "x$1" = "x" ]; then
    help
elif [ "x$1" = "xstart" ]; then

    if [ "x$2" = "xmariadb" ]; then
        if test -x $MARIADB_SCRIPT; then
            $MARIADB_SCRIPT start
            MARIADB_ERROR=$?
        fi
    elif [ "x$2" = "xmysql" ]; then
        if test -x $MYSQL_SCRIPT; then
            $MYSQL_SCRIPT start
            MYSQL_ERROR=$?
        fi
    elif [ "x$2" = "xpostgresql" ]; then
        if test -x $POSTGRESQL_SCRIPT; then
            $POSTGRESQL_SCRIPT start
            POSTGRESQL_ERROR=$?
        fi
    elif [ "x$2" = "xmongodb" ]; then
        if test -x $MONGODB_SCRIPT; then
            $MONGODB_SCRIPT start
            MONGODB_ERROR=$?
        fi
    elif [ "x$2" = "xingres" ]; then
        if test -x $INGRES_SCRIPT; then
            $INGRES_SCRIPT start
            INGRES_ERROR=$?
        fi
    elif [ "x$2" = "xlibreoffice" ]; then
        if test -x $LIBREOFFICE_SCRIPT; then
            $LIBREOFFICE_SCRIPT start
            LIBREOFFICE_ERROR=$?
        fi
    elif [ "x$2" = "xhypersonic" ]; then
        if test -x $HYPERSONIC_SCRIPT; then
            $HYPERSONIC_SCRIPT start
            HYPERSONIC_ERROR=$?
        fi
    elif [ "x$2" = "xmemcached" ]; then
        if test -x $MEMCACHED_SCRIPT; then
            $MEMCACHED_SCRIPT start
            MEMCACHED_ERROR=$?
        fi
    elif [ "x$2" = "xsolr" ]; then
        if test -x $SOLR_SCRIPT; then
            $SOLR_SCRIPT start
            SOLR_ERROR=$?
        fi
    elif [ "x$2" = "xelasticsearch" ]; then
        if test -x $ELASTICSEARCH_SCRIPT; then
            $ELASTICSEARCH_SCRIPT start
            ELASTICSEARCH_ERROR=$?
        fi
    elif [ "x$2" = "xlogstash" ]; then
        if test -x $LOGSTASH_SCRIPT; then
            $LOGSTASH_SCRIPT start
            LOGSTASH_ERROR=$?
        fi
    elif [ "x$2" = "xkibana" ]; then
        if test -x $KIBANA_SCRIPT; then
            $KIBANA_SCRIPT start
            KIBANA_ERROR=$?
        fi
    elif [ "x$2" = "xtomcat" ]; then
        if test -x $TOMCAT_SCRIPT; then
            $TOMCAT_SCRIPT start
            TOMCAT_ERROR=$?
        fi
    elif [ "x$2" = "xresin" ]; then
        if test -x $RESIN_SCRIPT; then
            $RESIN_SCRIPT start
            RESIN_ERROR=$?
        fi
    elif [ "x$2" = "xredis" ]; then
        if test -x $REDIS_SCRIPT; then
            $REDIS_SCRIPT start
            REDIS_ERROR=$?
        fi
    #odoo_gevent_code_start
        elif [ "x$2" = "xodoo_gevent" ]; then
        if test -x $ODOO_GEVENT_SCRIPT; then
            $ODOO_GEVENT_SCRIPT start
            ODOO_GEVENT_ERROR=$?
        fi
        #odoo_gevent_code_end
        #odoo_background_worker_code_start
        elif [ "x$2" = "xodoo_background_worker" ]; then
        if test -x $ODOO_BACKGROUND_WORKER_SCRIPT; then
            $ODOO_BACKGROUND_WORKER_SCRIPT start
            ODOO_BACKGROUND_WORKER_ERROR=$?
        fi
        #odoo_background_worker_code_end
        #RUBY_APPLICATION_START
    elif [ "x$2" = "xrabbitmq" ]; then
        if test -x $RABBITMQ_SCRIPT; then
            $RABBITMQ_SCRIPT start
            RABBITMQ_ERROR=$?
        fi
    elif [ "x$2" = "xactivemq" ]; then
        if test -x $ACTIVEMQ_SCRIPT; then
            $ACTIVEMQ_SCRIPT start
            ACTIVEMQ_ERROR=$?
        fi
    elif [ "x$2" = "xzope_application" ]; then
        if test -x $ZOPE_SCRIPT; then
            $ZOPE_SCRIPT start
            ZOPE_ERROR=$?
        fi
    elif [ "x$2" = "xlucene" ]; then
        if test -x $LUCENE_SCRIPT; then
            $LUCENE_SCRIPT start
            LUCENE_ERROR=$?
        fi
    elif [ "x$2" = "xvarnish" ]; then
        if test -x $VARNISH_SCRIPT; then
            $VARNISH_SCRIPT start
            VARNISH_ERROR=$?
        fi
    elif [ "x$2" = "xphp-fpm" ]; then
        if test -x $PHPFPM_SCRIPT; then
            $PHPFPM_SCRIPT start
            PHPFPM_ERROR=$?
        fi
    elif [ "x$2" = "xhhvm" ]; then
        if test -x $HHVM_SCRIPT; then
            $HHVM_SCRIPT start
            HHVM_ERROR=$?
        fi
    elif [ "x$2" = "xapache" ]; then
        if test -x $APACHE_SCRIPT; then
            $APACHE_SCRIPT start
            APACHE_ERROR=$?
        fi
    elif [ "x$2" = "xnginx" ]; then
        if test -x $NGINX_SCRIPT; then
            $NGINX_SCRIPT start
            NGINX_ERROR=$?
        fi
    elif [ "x$2" = "xsubversion" ]; then
        if test -x $SUBVERSION_SCRIPT; then
            $SUBVERSION_SCRIPT start
            SUBVERSION_ERROR=$?
        fi
    elif [ "x$2" = "xthird_application" ]; then
        if test -x $THIRD_SCRIPT; then
            $THIRD_SCRIPT start
            THIRD_ERROR=$?
        fi
    elif [ "x$2" = "xnagios" ]; then
        if test -x $NAGIOS_SCRIPT; then
            $NAGIOS_SCRIPT start
            NAGIOS_ERROR=$?
        fi
    elif [ "x$2" = "xjetty" ]; then
        if test -x $JETTY_SCRIPT; then
            $JETTY_SCRIPT start
            JETTY_ERROR=$?
        fi
    elif [ "x$2" = "x" ]; then
        if test -x $MARIADB_SCRIPT; then
            $MARIADB_SCRIPT start
            MARIADB_ERROR=$?
            sleep 5
        fi
        if test -x $MYSQL_SCRIPT; then
            $MYSQL_SCRIPT start
            MYSQL_ERROR=$?
            sleep 5
        fi
        if test -x $POSTGRESQL_SCRIPT; then
            $POSTGRESQL_SCRIPT start
            POSTGRESQL_ERROR=$?
            sleep 5
        fi
        if test -x $MONGODB_SCRIPT; then
            $MONGODB_SCRIPT start
            MONGODB_ERROR=$?
            sleep 2
        fi
        if test -x $INGRES_SCRIPT; then
            $INGRES_SCRIPT start
            INGRES_ERROR=$?
            sleep 5
        fi

        if test -x $LIBREOFFICE_SCRIPT; then
            $LIBREOFFICE_SCRIPT start
            LIBREOFFICE_ERROR=$?
        fi

        if test -x $HYPERSONIC_SCRIPT; then
            $HYPERSONIC_SCRIPT start
            HYPERSONIC_ERROR=$?
        fi

        if test -x $MEMCACHED_SCRIPT; then
            $MEMCACHED_SCRIPT start
            MEMCACHED_ERROR=$?
        fi

        if test -x $SOLR_SCRIPT; then
            $SOLR_SCRIPT start
            SOLR_ERROR=$?
        fi

        if test -x $ELASTICSEARCH_SCRIPT; then
            $ELASTICSEARCH_SCRIPT start
            ELASTICSEARCH_ERROR=$?
        fi

        if test -x $LOGSTASH_SCRIPT; then
            $LOGSTASH_SCRIPT start
            LOGSTASH_ERROR=$?
        fi

        if test -x $KIBANA_SCRIPT; then
            $KIBANA_SCRIPT start
            KIBANA_ERROR=$?
        fi

        if test -x $TOMCAT_SCRIPT; then
            $TOMCAT_SCRIPT start
            TOMCAT_ERROR=$?
        fi

        if test -x $RESIN_SCRIPT; then
            $RESIN_SCRIPT start
            RESIN_ERROR=$?
        fi
        if test -x $REDIS_SCRIPT; then
            $REDIS_SCRIPT start
            REDIS_ERROR=$?
        fi
	#odoo_gevent_code_start
        if test -x $ODOO_GEVENT_SCRIPT; then
            $ODOO_GEVENT_SCRIPT start
            ODOO_GEVENT_ERROR=$?
        fi
        #odoo_gevent_code_end
        #odoo_background_worker_code_start
        if test -x $ODOO_BACKGROUND_WORKER_SCRIPT; then
            $ODOO_BACKGROUND_WORKER_SCRIPT start
            ODOO_BACKGROUND_WORKER_ERROR=$?
        fi
        #odoo_background_worker_code_end
        #RUBY_APPLICATION_GENERIC_START

        if test -x $RABBITMQ_SCRIPT; then
            $RABBITMQ_SCRIPT start
            RABBITMQ_ERROR=$?
        fi
        if test -x $ACTIVEMQ_SCRIPT; then
            $ACTIVEMQ_SCRIPT start
            ACTIVEMQ_ERROR=$?
        fi
        if test -x $ZOPE_SCRIPT; then
            $ZOPE_SCRIPT start
            ZOPE_ERROR=$?
        fi

        if test -x $LUCENE_SCRIPT; then
            $LUCENE_SCRIPT start
            LUCENE_ERROR=$?
        fi
        if test -x $PHPFPM_SCRIPT; then
            $PHPFPM_SCRIPT start
            PHPFPM_ERROR=$?
        fi
        if test -x $HHVM_SCRIPT; then
            $HHVM_SCRIPT start
            HHVM_ERROR=$?
        fi
        if test -x $APACHE_SCRIPT; then
            $APACHE_SCRIPT start
            APACHE_ERROR=$?
        fi
        if test -x $VARNISH_SCRIPT; then
            $VARNISH_SCRIPT start
            VARNISH_ERROR=$?
        fi
        if test -x $NGINX_SCRIPT; then
            $NGINX_SCRIPT start
            NGINX_ERROR=$?
        fi

        if test -x $SUBVERSION_SCRIPT; then
            $SUBVERSION_SCRIPT start
            SUBVERSION_ERROR=$?
        fi
        if test -x $THIRD_SCRIPT; then
            $THIRD_SCRIPT start
            THIRD_ERROR=$?
        fi
        if test -x $NAGIOS_SCRIPT; then
            $NAGIOS_SCRIPT start
            NAGIOS_ERROR=$?
        fi
        if test -x $JETTY_SCRIPT; then
            $JETTY_SCRIPT start
            JETTY_ERROR=$?
        fi
    else
	help
    fi


elif [ "x$1" = "xstop" ]; then

Hi @a.ashouba,

Did you reload the systemd daemon?

systemctl daemon-reload 

Regards,
Michiel

Hi @michiel
I followed this tutorial to activate the automatic start, it is not sign to reload daemon, when do I have to reload, before activating the service

Hi @a.ashouba,

For OSX could you follow this guide?

https://docs.bitnami.com/installer/faq/osx-faq/administration/autostart-osx/

Regards,
Michiel

Hi @michiel
I don’t think so because the Odoo 13 osx VM is based on debian, I have installed the dmg file and I did not install it in command line on osx, there is no Library folder in the terminal of bitnami OSX VM, I am obliged to follow the tutorial I sent you.
thank you

Hi @a.ashouba,

My apologies for the mistake, unfortunately for OSX VM’s it’s not possible to start the services automatically at startup.

Regards,
Michiel

OK @michiel
thank you