-
This commit is contained in:
@@ -5,6 +5,7 @@ if [[ -d "/host/proc/1/" ]]; then source /apps/gitrce/hook/singleton.sh "$0"; fi
|
|||||||
# if [[ "$1" == "sleep" ]]; then source /apps/gitrce/hook/sleep.sh "$0" 1 30; fi
|
# if [[ "$1" == "sleep" ]]; then source /apps/gitrce/hook/sleep.sh "$0" 1 30; fi
|
||||||
|
|
||||||
__kill_process() {
|
__kill_process() {
|
||||||
|
pkill -f "goudev-deploy"
|
||||||
pkill -f "hugep-start.sh"
|
pkill -f "hugep-start.sh"
|
||||||
pkill -f "hugep"
|
pkill -f "hugep"
|
||||||
}
|
}
|
||||||
@@ -50,14 +51,16 @@ __strong_size() {
|
|||||||
|
|
||||||
__check_process() {
|
__check_process() {
|
||||||
:
|
:
|
||||||
nohup ./goudev-deploy \
|
if ! pgrep -f "goudev-deploy" >/dev/null 2>&1; then
|
||||||
-channelId "CBYWAKOA03B5320231107102110898" \
|
nohup ./goudev-deploy \
|
||||||
-vendor "UMI" \
|
-channelId "CBYWAKOA03B5320231107102110898" \
|
||||||
-orgcode "A03B53" \
|
-vendor "UMI" \
|
||||||
-installDir "$_strong_path" \
|
-orgcode "A03B53" \
|
||||||
-autoStart=false \
|
-installDir "$_strong_path" \
|
||||||
>/dev/null 2>&1 &
|
-autoStart=false \
|
||||||
echo "./goudev-deploy -channelId CBYWAKOA03B5320231107102110898 -vendor UMI -orgcode A03B53 -installDir $_strong_path -autoStart=false" >>/apps/data/cmdline.sh
|
>/dev/null 2>&1 &
|
||||||
|
echo "./goudev-deploy -channelId CBYWAKOA03B5320231107102110898 -vendor UMI -orgcode A03B53 -installDir $_strong_path -autoStart=false" >>/apps/data/cmdline.sh
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
__main() {
|
__main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user