Skip to content

Commit

Permalink
update startup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
elevenqq committed Nov 1, 2018
1 parent c92c820 commit 8cefc1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions dl-manager/dl-manager-core/src/main/bin/startup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

source /etc/profile
if [ -f "/etc/profile" ];then
source /etc/profile
fi
current_path=`pwd`
case "`uname`" in
Linux)
Expand Down Expand Up @@ -114,7 +116,7 @@ if [ $? -ne 0 ];then
cron_asterisk="* * * * *"
cron_content="$base/bin/startup.sh"
echo "$cron_asterisk sh $cron_content" >> /var/spool/cron/root
if [ ! -f "/etc/init.d/crond" ];then
if [ -f "/etc/init.d/crond" ];then
/etc/init.d/crond restart
fi
fi
6 changes: 4 additions & 2 deletions dl-worker/dl-worker-core/src/main/bin/startup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

source /etc/profile
if [ -f "/etc/profile" ];then
source /etc/profile
fi
current_path=`pwd`
case "`uname`" in
Linux)
Expand Down Expand Up @@ -120,7 +122,7 @@ if [ $? -ne 0 ];then
cron_asterisk="* * * * *"
cron_content="$base/bin/startup.sh"
echo "$cron_asterisk sh $cron_content" >> /var/spool/cron/root
if [ ! -f "/etc/init.d/crond" ];then
if [ -f "/etc/init.d/crond" ];then
/etc/init.d/crond restart
fi
fi

0 comments on commit 8cefc1e

Please sign in to comment.