aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/config
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2019-10-25 12:46:38 +0000
committerGerrit Code Review <gerrit@fd.io>2019-10-25 12:46:38 +0000
commit12439a0131fa2c10d52a190fbb44ca54d0d3dc6e (patch)
treef57c07b9cf80a4faa803f432ed97fbb0b4c9adb7 /hicn-light/config
parent8103b2103a1405b0c2344abc956e10535f7012b3 (diff)
parentbaaeb1af53ab4c64b31786bddfd7573445f21342 (diff)
Merge "[HICN-358] Enable systemctl service after package installation."
Diffstat (limited to 'hicn-light/config')
-rw-r--r--hicn-light/config/hicn-light.service4
-rwxr-xr-xhicn-light/config/post3
-rwxr-xr-xhicn-light/config/postinst3
-rwxr-xr-xhicn-light/config/prerm3
-rwxr-xr-xhicn-light/config/preun3
5 files changed, 14 insertions, 2 deletions
diff --git a/hicn-light/config/hicn-light.service b/hicn-light/config/hicn-light.service
index 0f976fc6c..f269b2f26 100644
--- a/hicn-light/config/hicn-light.service
+++ b/hicn-light/config/hicn-light.service
@@ -21,8 +21,8 @@ Environment=LOG_FILE=/tmp/hicn_light.log
Environment=CS_SIZE=1000
Environment=CONFIG=/etc/hicn/hicn_light.conf
# This will overrride the default environment
-EnvironmentFile=-/etc/default/source
-ExecStart=/usr/bin/hicnLightDaemon --port ${PORT} --log-file ${LOG_FILE} --capacity ${CS_SIZE} --config ${CONFIG}
+EnvironmentFile=-/etc/default/hicn-light
+ExecStart=/usr/bin/hicn-light-daemon --port ${PORT} --log-file ${LOG_FILE} --capacity ${CS_SIZE} --config ${CONFIG}
Restart=on-failure
[Install]
diff --git a/hicn-light/config/post b/hicn-light/config/post
new file mode 100755
index 000000000..dced2a093
--- /dev/null
+++ b/hicn-light/config/post
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+systemctl enable hicn-light \ No newline at end of file
diff --git a/hicn-light/config/postinst b/hicn-light/config/postinst
new file mode 100755
index 000000000..dced2a093
--- /dev/null
+++ b/hicn-light/config/postinst
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+systemctl enable hicn-light \ No newline at end of file
diff --git a/hicn-light/config/prerm b/hicn-light/config/prerm
new file mode 100755
index 000000000..4584c7057
--- /dev/null
+++ b/hicn-light/config/prerm
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+systemctl disable hicn-light \ No newline at end of file
diff --git a/hicn-light/config/preun b/hicn-light/config/preun
new file mode 100755
index 000000000..4584c7057
--- /dev/null
+++ b/hicn-light/config/preun
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+systemctl disable hicn-light \ No newline at end of file