Changeset 55 for trunk


Ignore:
Timestamp:
07/03/12 11:42:05 (12 years ago)
Author:
bas
Message:

Preparing for TORQUE 4.X release

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/changelog

    r53 r55  
     1torque (4.1.0-1) unstable; urgency=low
     2
     3  * New torque release to test
     4
     5 -- Bas van der Vlies <basv@sara.nl>  Tue, 03 Jul 2012 09:06:02 +0200
     6
    17torque (2.4.16-2) unstable; urgency=low
    28
  • trunk/conf_torque

    r50 r55  
    99set -x
    1010
    11 
    12 if [ -f torque_oldconfigure ]
    13 then
    14   LIBS="-lutil" ./configure --prefix=/usr \
    15         --libdir=/usr/lib/torque \
    16         --includedir=/usr/include/torque \
    17         --set-server-home=/var/spool/torque \
    18         --set-tmpdir=/var/tmp \
    19         --enable-syslog \
    20         --set-sched=c \
    21         --set-sched-code=fifo \
    22         --set-default-server=localhost \
    23         --disable-gui \
    24         --set-cflags=" -g -D__PNEWTTY" \
    25         --enable-docs \
    26         --with-scp
    27 else
    28  CFLAGS=" -D_FILE_OFFSET_BITS=64" ./configure --prefix=/usr \
     11CFLAGS=" -D_FILE_OFFSET_BITS=64" ./configure --prefix=/usr \
    2912        --includedir=/usr/include/torque \
    3013        --with-server-home=/var/spool/torque \
     
    4124        --enable-docs \
    4225        --with-rcp=scp
    43 fi
    44 
    45 #--libdir=/usr/lib \
  • trunk/init.d

    r45 r55  
    3232PBS_SCHED_OPTS=''
    3333PBS_SERVER_OPTS='-a t'
     34PBS_TRQAUTH_OPTS=""
    3435
    3536if [ ! -f $DEFAULT ]
     
    5657}
    5758
     59start_trqauth() {
     60        start-stop-daemon --start --quiet --exec $TORQUE_DIR/trqauthd -- $PBS_TRQAUTH_OPTS
     61        echo " pbs trqauth"
     62}
     63
    5864start_daemons() {
    59     check_perms
    60 
    61         if [ "$PBS_SERVER" = "1" ]
    62         then
    63                 start_server
    64         fi
    65        
    66         if [ "$PBS_SCHED" = "1" ]
    67         then
    68                 start_sched
    69         fi
    70        
    71         if [ "$PBS_MOM" = "1" ]
    72         then
    73                 start_mom
    74         fi
     65    check_perms
     66
     67    ## Always start trqauth daemon
     68    #
     69    start_trqauth
     70
     71    if [ "$PBS_SERVER" = "1" ]
     72    then
     73        start_server
     74    fi
     75       
     76    if [ "$PBS_SCHED" = "1" ]
     77    then
     78        start_sched
     79    fi
     80       
     81   if [ "$PBS_MOM" = "1" ]
     82   then
     83        start_mom
     84   fi
    7585}
    7686
     
    94104}
    95105
     106stop_trqauth() {
     107        start-stop-daemon --retry 5 --stop --quiet --exec $TORQUE_DIR/trqauthd
     108        echo " pbs trqauth"
     109}
     110
    96111stop_daemons() {
    97112        if [ "$PBS_SERVER" = "1" ]
     
    110125        fi
    111126}
    112 
    113127
    114128## Check permissions and directories
     
    171185        ;;
    172186
     187        restart-server)
     188                echo "Restarting pbs trqauthr: "
     189                stop_trqauth
     190                sleep 1
     191                start_trqauth
     192        ;;
     193
    173194        *)
    174                 echo "Usage: $0 {restart|start|stop|restart-mom|restart-server|restart-sched}\n" >&2
     195                echo "Usage: $0 {restart|start|stop|restart-mom|restart-server|restart-sched|restart-trqauth}\n" >&2
    175196                exit 1
    176197        ;;
  • trunk/patches/apply

    r41 r55  
    1313#cp debian/patches/pbs_mkdirs.in buildutils
    1414
    15 r=`grep -c 2.1.0 CHANGELOG`
    16 case `uname -r` in
    17         2.6*)
    18                 if [ $r -eq 0 ]
    19                 then
    20                         touch torque_oldconfigure
    21                 else
    22                         touch torque_newconfigure
    23                 fi
    24         ;;
    25 esac
     15## We do not need this anymore
     16#
     17#r=`grep -c 2.1.0 CHANGELOG`
     18#case `uname -r` in
     19#       2.6*)
     20#               if [ $r -eq 0 ]
     21#               then
     22#                       touch torque_oldconfigure
     23#               else
     24#                       touch torque_newconfigure
     25#               fi
     26#       ;;
     27#esac
    2628
    2729# Always do this patch
  • trunk/rules

    r50 r55  
    2323
    2424        # apply some patches
    25         debian/patches/apply
     25        #debian/patches/apply
    2626
    2727        touch patched
     
    7777        dh_installdebconf
    7878        dh_compress
    79         dh_fixperms -Xpbs_iff
     79        dh_fixperms
    8080        dh_installdeb
    8181        dh_makeshlibs
     
    9696        # directories. Thanks to Jaap Dijkshoorn
    9797        #
    98         cp buildutils/pbs_mkdirs debian/torque/usr/sbin
     98        #cp buildutils/pbs_mkdirs debian/torque/usr/sbin
    9999
    100100        # Not in the standard install ;-)
    101101        #
    102         cp src/include/rm.h debian/torque/usr/include/torque
    103         cp src/include/log.h debian/torque/usr/include/torque
    104 
    105         #
    106         # pbs_iff permissions must suid root
    107         #
    108         chown root.root debian/torque/usr/sbin/pbs_iff
    109         chmod 4755 debian/torque/usr/sbin/pbs_iff
     102        #cp src/include/rm.h debian/torque/usr/include/torque
     103        #cp src/include/log.h debian/torque/usr/include/torque
    110104
    111105        dh_builddeb
Note: See TracChangeset for help on using the changeset viewer.