Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Aug 30, 2023
1 parent 92ddd8d commit 9e10e55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions box/scripts/box.service
Original file line number Diff line number Diff line change
Expand Up @@ -474,15 +474,15 @@ box_bin_status() {

# Save the process ID to the pid file
if [ -n "$PID" ]; then
sed -Ei 's/^description=(\[.*][[:space:]]*)?/description=[ ♻️ '${bin_name}' service is running ] /g' "$PROPFILE"
sed -Ei "s/^description=(\[.*][[:space:]]*)?/description=[ $current_time | ✔ $bin_name service is running!!! ] /g" "$PROPFILE"
echo -n "$PID" > "${box_pid}"
fi
}

start_box() {
# Clear the log file and add the timestamp and delimiter
# cd /data/adb/box/bin; chmod 755 *
sed -Ei 's/^description=(\[.*][[:space:]]*)?/description=[ ⚠️ Module is working! but no service is running ] /g' "$PROPFILE"
sed -Ei "s/^description=(\[.*][[:space:]]*)?/description=[ $current_time | ☹ Module is working! but no service is running ] /g" "$PROPFILE"

echo -n "" > "${box_log}"
box_version=$(busybox awk '!/^ *#/ && /version=/ { print $0 }' "/data/adb/modules/box_for_root/module.prop" 2>/dev/null)
Expand Down Expand Up @@ -599,7 +599,7 @@ stop_box() {
log Warning "${bin_name} Not stopped; may still be shutting down or failed to shut down."
force_stop
fi
sed -Ei 's/^description=(\[.*][[:space:]]*)?/description=[ '${bin_name}' service is stopped ] /g' "$PROPFILE"
sed -Ei "s/^description=(\[.*][[:space:]]*)?/description=[ $current_time | ✘ $bin_name service is stopped !!! ] /g" "$PROPFILE"
}

stop_cron() {
Expand Down

0 comments on commit 9e10e55

Please sign in to comment.