Changeset 3131 in /cluster/svnroot


Ignore:
Timestamp:
Apr 14, 2011 9:08:00 PM (10 years ago)
Author:
skylar
Message:

disabling bccd-condor in liberation, remaking condor in bccd-reset-network (#179)

Location:
bccd-ng/branches/skylar-condor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar-condor/packages/liberate.pl

    r2944 r3131  
    651651        "system",
    652652        "",
     653        "Disabled bccd-condor in $LIBDIR.",
     654        "/usr/sbin/chroot $LIBDIR /usr/sbin/update-rc.d -f bccd-condor remove",
     655        );
     656
     657$Bccd->run_test(
     658        "system",
     659        "",
    653660        "Generating md5sum file.",
    654661        qq{/usr/bin/find $LIBDIR -type f -print0|xargs -0 /usr/bin/md5sum |sed -e 's!\([[:space:]][[:space:]]\)*/liberate!\1!g' > /var/tmp/bccd.md5},
  • bccd-ng/branches/skylar-condor/trees/bin/bccd-reset-network

    r2944 r3131  
    5555fi
    5656
     57/bin/rm -f /etc/condor/condor_config.local
     58RC=$?
     59if [ ${RC} -ne 0 ]; then
     60        fatal -m "Removing condor config failed" -r ${RC}
     61fi
     62
    5763/usr/sbin/invoke-rc.d networking stop
    5864RC=$?
     
    9096        fatal -m "DHCP server start failed" -r ${RC}
    9197fi
     98
     99/bin/cp /etc/condor/condor.config.{template,local}
     100RC=$?
     101if [ ${RC} -ne 0 ]; then
     102        fatal -m "Remaking condor config from template failed" -r ${RC}
     103fi
     104
     105/usr/sbin/invoke-rc.d bccd-condor start
     106RC=$?
     107if [ ${RC} -ne 0 ]; then
     108        fatal -m "Condor reconfig failed" -r ${RC}
     109fi
     110
     111/usr/sbin/invoke-rc.d condor restart
     112RC=$?
     113if [ ${RC} -ne 0 ]; then
     114        fatal -m "condor restart failed" -r ${RC}
     115fi
Note: See TracChangeset for help on using the changeset viewer.