diff options
author | 2019-10-24 20:59:30 +0200 | |
---|---|---|
committer | 2019-10-25 11:59:49 +0200 | |
commit | baaeb1af53ab4c64b31786bddfd7573445f21342 (patch) | |
tree | 5934885d9732b8c890d8ee89787ba5d3f2dbd527 /hicn-light/config | |
parent | cf3d6ef0cbda50c9917421213a77097250f3d67b (diff) |
[HICN-358] Enable systemctl service after package installation.
Change-Id: I1c9a7099fbf59c09fb22475e9695373f316d0b6e
Signed-off-by: Mauro Sardara <msardara@cisco.com>
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 |