Enable restart for gpio monitor
1. Additional restart service setting to avoid
GPIO service stop as it is crashed.
- Restart=no
+ Restart=always
+ RestartSec=5
Tested:
It has been tested on system with openbmc
Signed-off-by: Payne Yang <pyang4@lenovo.com>
Change-Id: Idd332dda4b2c8391fd9c2ba1844a1c69b55b8e76
diff --git a/phosphor-gpio-monitor@.service b/phosphor-gpio-monitor@.service
index 02572a2..5975ecf 100644
--- a/phosphor-gpio-monitor@.service
+++ b/phosphor-gpio-monitor@.service
@@ -2,6 +2,7 @@
Description=Phosphor GPIO %I monitor
[Service]
-Restart=no
+Restart=always
+RestartSec=5
EnvironmentFile=/etc/default/obmc/gpio/%I
ExecStart=/usr/bin/phosphor-gpio-monitor --path=${DEVPATH} --key=${KEY} --polarity=${POLARITY} --target=${TARGET} ${EXTRA_ARGS}