summaryrefslogtreecommitdiff
path: root/netconf-service/netconf.service
diff options
context:
space:
mode:
Diffstat (limited to 'netconf-service/netconf.service')
-rwxr-xr-xnetconf-service/netconf.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/netconf-service/netconf.service b/netconf-service/netconf.service
new file mode 100755
index 00000000..5371ff0c
--- /dev/null
+++ b/netconf-service/netconf.service
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+export PATH=/bin:/usr/bin:/usr/local/bin
+
+# We will start in ZT_HOME
+
+if [ ! -d ./services.d/netconf-service ]; then
+ echo 'cannot find netconf-service subfolder to launch subprocess' >>&2
+ exit 1
+fi
+
+cd services.d/netconf-service
+exec node index.js