diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-10-25 12:46:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-10-25 12:46:38 +0000 |
commit | 12439a0131fa2c10d52a190fbb44ca54d0d3dc6e (patch) | |
tree | f57c07b9cf80a4faa803f432ed97fbb0b4c9adb7 /hicn-light/config | |
parent | 8103b2103a1405b0c2344abc956e10535f7012b3 (diff) | |
parent | baaeb1af53ab4c64b31786bddfd7573445f21342 (diff) |
Merge "[HICN-358] Enable systemctl service after package installation."
Diffstat (limited to 'hicn-light/config')
-rw-r--r-- | hicn-light/config/hicn-light.service | 4 | ||||
-rwxr-xr-x | hicn-light/config/post | 3 | ||||
-rwxr-xr-x | hicn-light/config/postinst | 3 | ||||
-rwxr-xr-x | hicn-light/config/prerm | 3 | ||||
-rwxr-xr-x | hicn-light/config/preun | 3 |
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 |