Skip to content

Commit e7c795a

Browse files
authored
Added timestamp
1 parent f0191b3 commit e7c795a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

check.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ if [ -z "$SERVICE_NAME" ]; then
88
fi
99

1010
STATUS=$(/opt/etc/init.d/rc.unslung check "$SERVICE_NAME")
11+
DATE=$(date "+%D %T")
1112

1213
echo "$STATUS" | grep -q "dead"
1314
if [ $? -eq 0 ]; then
14-
echo "$SERVICE_NAME is dead. Attempting to start..."
15+
echo "$DATE : $SERVICE_NAME is dead. Attempting to start..."
1516
/opt/etc/init.d/rc.unslung start "$SERVICE_NAME"
1617
fi

0 commit comments

Comments
 (0)