From e883394a667780b09882e995cc6da3d610a16029 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Thu, 14 Oct 2021 15:41:56 +0800 Subject: [PATCH] opt some --- bin/ice.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/ice.sh b/bin/ice.sh index 796a3b7c..e2b08dce 100755 --- a/bin/ice.sh +++ b/bin/ice.sh @@ -1,9 +1,8 @@ -#! /bin/sh +#!/bin/sh export ctx_log=${ctx_log:=bin/boot.log} export ctx_pid=${ctx_pid:=var/run/ice.pid} - start() { trap HUP hup && while true; do date && bin/ice.bin $@ 2>$ctx_log && break || echo -e \"\n\nrestarting...\"