From e01652f745957247b4d3887a917b12d232d9f11d Mon Sep 17 00:00:00 2001 From: Jonathan Hart Date: Tue, 29 Mar 2016 10:25:11 -0700 Subject: [PATCH] Add init info to init.d script so it can be configured to run at startup. Change-Id: Ie8b36ad123febe4be06837f3eb4a2ed28df3b31b --- tools/package/init/onos.initd | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/package/init/onos.initd b/tools/package/init/onos.initd index 0323f2e969..9e33c98189 100755 --- a/tools/package/init/onos.initd +++ b/tools/package/init/onos.initd @@ -7,6 +7,16 @@ # If it is invoked by a boot system, environment variables will usually be # empty and the default values will be used. # ----------------------------------------------------------------------------- +### BEGIN INIT INFO +# Provides: onos +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $network $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: ONOS network operating system +# Description: ONOS is a network operating system for controlling SDN networks, designed for high availablility, performance, and scale out. +### END INIT INFO + ONOS_HOME=${ONOS_HOME:-/opt/onos} [ -f $ONOS_HOME/options ] && . $ONOS_HOME/options