diff options
Diffstat (limited to 'etc/rc.initial')
-rwxr-xr-x | etc/rc.initial | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/rc.initial b/etc/rc.initial index 523ac62..e6c5de2 100755 --- a/etc/rc.initial +++ b/etc/rc.initial @@ -24,8 +24,11 @@ if [ -f "/tmp/donotbootup" ]; then fi if [ -f /etc/rc.local ]; then - echo ">>> Launching rc.local" - sh /etc/rc.local + RCLOCALPWD=`ps awux | grep sendmail | grep -v grep | awk '{ print $2 }'` + if [ "$RCLOCALPWD" = "" ]; then + echo ">>> Launching rc.local in background..." + sh /etc/rc.local & + fi fi CONFIG="/cf/conf/config.xml" |