Delay ODL startup until networking service is up, otherwise if all
interfaces on the box come up with DHCP and there is no local
definition of FQDN (as in `/etc/hosts`), ODL fails to startup.
Secondly disable the server console when starting up, otherwise it will
hijack the startup tty.
Change-Id: I2e973d4207f95e1ef823c269aaa82b3b1fe5b71d
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
description "OpenDaylight SDN Controller"
# Make sure we start before an interface receives traffic
-start on (starting network-interface
- or starting network-manager
- or starting networking)
+start on (started network-interface
+ or started network-manager
+ or started networking)
stop on runlevel [!023456]
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64/
-exec start-stop-daemon --start --chuid odl:odl -u odl -n java --startas /opt/opendaylight/bin/karaf --
+exec start-stop-daemon --start --chuid odl:odl -u odl -n java --startas /opt/opendaylight/bin/karaf -- server