We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0191b3 commit e7c795aCopy full SHA for e7c795a
check.sh
@@ -8,9 +8,10 @@ if [ -z "$SERVICE_NAME" ]; then
8
fi
9
10
STATUS=$(/opt/etc/init.d/rc.unslung check "$SERVICE_NAME")
11
+DATE=$(date "+%D %T")
12
13
echo "$STATUS" | grep -q "dead"
14
if [ $? -eq 0 ]; then
- echo "$SERVICE_NAME is dead. Attempting to start..."
15
+ echo "$DATE : $SERVICE_NAME is dead. Attempting to start..."
16
/opt/etc/init.d/rc.unslung start "$SERVICE_NAME"
17
0 commit comments