diff options
Diffstat (limited to 'framework/src/onos/tools/package/debian')
-rw-r--r-- | framework/src/onos/tools/package/debian/onos.conf | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/framework/src/onos/tools/package/debian/onos.conf b/framework/src/onos/tools/package/debian/onos.conf new file mode 100644 index 00000000..634a2636 --- /dev/null +++ b/framework/src/onos/tools/package/debian/onos.conf @@ -0,0 +1,27 @@ +description "Open Network Operating System" +author "ON.Lab" + +start on (net-device-up + and local-filesystems + and runlevel [2345]) +stop on runlevel [016] + +console output +kill timeout 60 +respawn + +env LANG=en_US.UTF-8 +#env JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 +#env NEW_JAVA_HOME=/usr/lib/jvm/java-8-oracle/ + +pre-stop script + /opt/onos/bin/onos halt 2>>/opt/onos/var/stderr.log + sleep 1 +end script + +script + [ -f /opt/onos/options ] && . /opt/onos/options + start-stop-daemon --signal INT --start --chuid $ONOS_USER \ + --exec /opt/onos/bin/onos-service -- $ONOS_OPTS \ + >/opt/onos/var/stdout.log 2>/opt/onos/var/stderr.log +end script |