Changeset 22
- Timestamp:
- 11/07/07 17:21:56 (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/postinst
r20 r22 38 38 # 39 39 create_default_torque_file() { 40 set_conf_options() { 41 RESULT="" 42 db_get torque/$1 || true 43 if [ $? -eq 0 ]; then 44 RESULT=$RET 45 fi 46 } 47 40 48 PBS_SERVER=0 41 49 PBS_MOM=0 42 50 PBS_SCHED=0 51 PBS_MOM_OPTS="" 52 PBS_SCHED_OPTS="" 53 PBS_SERVER_OPTS="" 43 54 44 55 db_get torque/daemon_list … … 47 58 daemon=${daemon%,} 48 59 60 # this sets $RESULT 61 set_conf_options ${daemon}_opts 62 49 63 case "$daemon" in 50 64 pbs_server) 51 65 PBS_SERVER=1 66 PBS_SERVER_OPTS=$RESULT 52 67 ;; 53 68 pbs_mom) 54 69 PBS_MOM=1 70 PBS_MOM_OPTS=$RESULT 55 71 ;; 56 72 pbs_sched) 57 73 PBS_SCHED=1 74 PBS_SCHED_OPTS=$RESULT 58 75 ;; 59 76 esac … … 69 86 # dpkg-reconfigure -p high torque 70 87 # 71 # instead 88 # to change which daemons to start or 89 # 90 # dpkg-reconfigure -p medium torque 91 # 92 # to even change startup options (PBS_{MOM,SCHED,SERVER}_OPTS). 72 93 73 94 PBS_MOM=$PBS_MOM … … 75 96 PBS_SERVER=$PBS_SERVER 76 97 77 PBS_MOM_OPTS= ''78 PBS_SCHED_OPTS= ''79 PBS_SERVER_OPTS= '-a t'98 PBS_MOM_OPTS="$PBS_MOM_OPTS" 99 PBS_SCHED_OPTS="$PBS_SCHED_OPTS" 100 PBS_SERVER_OPTS="$PBS_SERVER_OPTS" 80 101 81 102 EOF -
trunk/torque.config
r14 r22 16 16 db_go 17 17 18 # If the user wants daemons, ask for any options to be passed 19 db_get torque/daemon_list 20 for daemon in $RET; do 21 daemon=${daemon%,} 22 db_input medium torque/${daemon}_opts || true 23 db_go 24 done 25 -
trunk/torque.templates
r12 r22 1 1 Template: torque/disclaimer 2 2 Type: note 3 Description: This debconf isn't fully functional. Configure in /etc/default/torque3 Description: This debconf isn't fully functional. 4 4 We currently do not provide full-featured torque configuration via debconf. 5 See /etc/default/torque to define which daemons to start and use qmgr or the 6 files in /var/spool/torque for everything else. 5 We just care about /etc/default/torque to define which daemons to start. 6 . 7 Use qmgr or the files in /var/spool/torque for everything else. 7 8 8 9 Template: torque/daemon_list … … 23 24 . 24 25 Don't modify this file by hand, it will be overwritten anytime you upgrade 25 this package. Use "dpkg-reconfigure -p low torque" instead. 26 this package. Use "dpkg-reconfigure -p high torque" instead. 27 28 Template: torque/pbs_mom_opts 29 Type: string 30 Description: Please enter the options to be passed to pbs_mom 31 Please enter the commandline options for pbs_mom. You can usually leave it 32 empty. 33 . 34 The value will be stored in /etc/default/torque. 35 . 36 Don't modify this file by hand, it will be overwritten anytime you upgrade 37 this package. Use "dpkg-reconfigure -p medium torque" instead. 38 39 Template: torque/pbs_sched_opts 40 Type: string 41 Description: Please enter the options to be passed to pbs_sched 42 Please enter the commandline options for pbs_sched. You can usually leave it 43 empty. 44 . 45 The value will be stored in /etc/default/torque. 46 . 47 Don't modify this file by hand, it will be overwritten anytime you upgrade 48 this package. Use "dpkg-reconfigure -p medium torque" instead. 49 50 Template: torque/pbs_server_opts 51 Type: string 52 Default: -a t 53 Description: Please enter the options to be passed to pbs_server 54 Please enter the commandline options for pbs_server. 55 The default is "-a t" 56 . 57 The value will be stored in /etc/default/torque. 58 . 59 Don't modify this file by hand, it will be overwritten anytime you upgrade 60 this package. Use "dpkg-reconfigure -p medium torque" instead.
Note: See TracChangeset
for help on using the changeset viewer.