Setupbox-Server/monitor/cache/restart_service.sh

7 lines
210 B
Bash

#!/bin/bash
time_begin=$(date)
echo "$time_begin : restart service!!" >> /root/monitor/log/cache.txt
systemctl restart S905X_BI
echo "************************************" >> /root/monitor/log/cache.txt
exit 0