aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/config
diff options
context:
space:
mode:
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