Changeset 31 for trunk/postinst


Ignore:
Timestamp:
09/15/09 09:22:12 (15 years ago)
Author:
bas
Message:

postinst:

  • restart if we configure the package.
  • added pbs_mom_restart_opts options. get it from debconf

torque.config, torque.templates:

  • added pbs_mom_restart_opts to debconf

init.d:

  • restart failed, fixed it


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/postinst

    r30 r31  
    7070                PBS_MOM=1
    7171                PBS_MOM_OPTS=$RESULT
     72
     73                set_conf_options ${daemon}_restart_opts
     74                PBS_MOM_RESTART_OPTS=$RESULT
     75
    7276                ;;
    7377            pbs_sched)
     
    161165if [ -x "/etc/init.d/torque" ]; then
    162166        update-rc.d torque defaults >/dev/null
    163         if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
    164         if [ "$1" = configure ]; then
    165             invoke-rc.d torque stop || true
    166         fi
    167                 invoke-rc.d torque start || exit 0
     167        if [ -x "`which invoke-rc.d 2>/dev/null`" ]
     168        then
     169                if [ "$1" = configure ]
     170                then
     171                        invoke-rc.d torque restart || true
     172                else
     173                        invoke-rc.d torque start || exit 0
     174                fi
    168175        else
    169         if [ "$1" = configure ]; then
    170             /etc/init.d/torque stop || true
    171         fi
    172                 /etc/init.d/torque start || exit 0
     176                if [ "$1" = configure ]
     177                then
     178                        /etc/init.d/torque restart || true
     179                else
     180                        /etc/init.d/torque start || exit 0
     181                fi
    173182        fi
    174183fi
Note: See TracChangeset for help on using the changeset viewer.