Committed by
Gerrit Code Review
Add init info to init.d script so it can be configured to run at startup.
Change-Id: Ie8b36ad123febe4be06837f3eb4a2ed28df3b31b
Showing
1 changed file
with
10 additions
and
0 deletions
... | @@ -7,6 +7,16 @@ | ... | @@ -7,6 +7,16 @@ |
7 | # If it is invoked by a boot system, environment variables will usually be | 7 | # If it is invoked by a boot system, environment variables will usually be |
8 | # empty and the default values will be used. | 8 | # empty and the default values will be used. |
9 | # ----------------------------------------------------------------------------- | 9 | # ----------------------------------------------------------------------------- |
10 | +### BEGIN INIT INFO | ||
11 | +# Provides: onos | ||
12 | +# Required-Start: $network $remote_fs $syslog | ||
13 | +# Required-Stop: $network $remote_fs $syslog | ||
14 | +# Default-Start: 2 3 4 5 | ||
15 | +# Default-Stop: 0 1 6 | ||
16 | +# Short-Description: ONOS network operating system | ||
17 | +# Description: ONOS is a network operating system for controlling SDN networks, designed for high availablility, performance, and scale out. | ||
18 | +### END INIT INFO | ||
19 | + | ||
10 | 20 | ||
11 | ONOS_HOME=${ONOS_HOME:-/opt/onos} | 21 | ONOS_HOME=${ONOS_HOME:-/opt/onos} |
12 | [ -f $ONOS_HOME/options ] && . $ONOS_HOME/options | 22 | [ -f $ONOS_HOME/options ] && . $ONOS_HOME/options | ... | ... |
-
Please register or login to post a comment