aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2020-09-11 11:50:43 +0200
committerMauro Sardara <msardara@cisco.com>2020-09-11 11:50:43 +0200
commit9c1aa190114dcd0be16dd4ce49459955fc4f7434 (patch)
tree972ba743c7b1cfbbabd38024215af670d4dc2e3c
parent742b2d4ffdccfeae2af31af78888eb10ea4ef28c (diff)
[HICN-638] Check if systemd is running before enabling hicn-light service.
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I3864fdab16b20f1cd03d421a356d8bb9227bdf6f
-rwxr-xr-xhicn-light/config/post4
1 files changed, 3 insertions, 1 deletions
diff --git a/hicn-light/config/post b/hicn-light/config/post
index dced2a093..91f596050 100755
--- a/hicn-light/config/post
+++ b/hicn-light/config/post
@@ -1,3 +1,5 @@
#!/bin/bash
-systemctl enable hicn-light \ No newline at end of file
+if pidof systemd; then
+ systemctl enable hicn-light
+fi