Skip to content

Commit 7ae170f

Browse files
committed
fix: the shutdown scripts
1 parent 90f5a84 commit 7ae170f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

l2/_op_rbuilder/mkosi.extra/etc/vault-agent/gomplate/op-rbuilder.service.ctmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ ExecStart=/usr/bin/op-rbuilder node \
114114

115115
ExecStop=+/usr/bin/sh -c "kill -1 $( pgrep node-health ) | true"
116116
ExecStop=+/usr/bin/sleep 15
117-
ExecStop=+/usr/bin/sh -c "PID=$( pgrep op-rbuilder ); if [ \"0${PID}\" -gt 0 ]; then kill -2 ${PID}; while kill -0 ${PID} 2>/dev/null; do sleep 1; done; fi"
117+
ExecStop=+/usr/bin/sh -c "PID=$( pgrep op-rbuilder ); if [ 0${PID} -gt 0 ]; then kill -2 ${PID}; while kill -0 ${PID} 2>/dev/null; do sleep 1; done; fi"

l2/_op_rbuilder/mkosi.extra/etc/vault-agent/gomplate/op-rbuilder.service.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ template {
2020
systemctl enable op-rbuilder
2121
2222
# patterns longer than 15 chars result in 0 matches
23-
PID=$( pgrep node-health ); if [ \"0${PID}\" -gt 0 ]; then kill -SIGHUP ${PID} | true; fi
23+
PID=$( pgrep node-health ); if [ 0${PID} -gt 0 ]; then kill -1 ${PID} | true; fi
2424
sleep 5
2525
26-
PID=$( pgrep rproxy ); if [ \"0${PID}\" -gt 0 ]; then kill -SIGHUP ${PID} | true; fi
26+
PID=$( pgrep rproxy ); if [ 0${PID} -gt 0 ]; then kill -1 ${PID} | true; fi
2727
2828
systemctl restart op-rbuilder
2929
systemctl restart node-healthchecker

0 commit comments

Comments
 (0)