Skip to content

Commit 891b274

Browse files
committed
Add sleep to service
1 parent d6ae2dc commit 891b274

File tree

1 file changed

+6
-1
lines changed
  • root/etc/s6-overlay/s6-rc.d/svc-mod-swag-ondemand

1 file changed

+6
-1
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/usr/bin/with-contenv bash
22

3-
exec s6-setuidgid abc python3 /app/swag-ondemand.py
3+
result=$(exec s6-setuidgid abc python3 /app/swag-ondemand.py)
4+
if [ $? -ne 0 ]; then
5+
echo "***** Error: swag-ondemand failed to run *****"
6+
echo "${result}"
7+
sleep infinity
8+
fi

0 commit comments

Comments
 (0)