From 5d58bee34f42d030a481d99aea85b1af98f469ef Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 1 Apr 2020 23:59:14 -0400 Subject: [PATCH] Add some time around noded startup/shutdown Otherwise, systemd kills networking before the node daemon fully stops and it goes into "dead" status, which is super annoying. --- node-daemon/pvcnoded.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node-daemon/pvcnoded.service b/node-daemon/pvcnoded.service index 87e4905f..4bf9897b 100644 --- a/node-daemon/pvcnoded.service +++ b/node-daemon/pvcnoded.service @@ -10,7 +10,9 @@ Type = simple WorkingDirectory = /usr/share/pvc Environment = PYTHONUNBUFFERED=true Environment = PVCD_CONFIG_FILE=/etc/pvc/pvcnoded.yaml +ExecStartPre = /bin/sleep 2 ExecStart = /usr/share/pvc/pvcnoded.py +ExecStopPost = /bin/sleep 2 Restart = on-failure [Install]