Changeset 21
- Timestamp:
- 11/07/07 13:43:44 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/init.d
r8 r21 14 14 TORQUE_DIR=/usr/sbin 15 15 DEFAULT=/etc/default/torque 16 SPOOLDIR=/var/spool/torque 16 17 17 18 # Some useful defaults can be overriden in the DEFAULT file … … 45 46 46 47 start_daemons() { 48 check_perms 49 47 50 if [ "$PBS_SERVER" = "1" ] 48 51 then … … 98 101 99 102 103 ## Check permissions and directories 104 check_perms() { 105 106 check_dir() { 107 if [ ! -d "$1" ]; then 108 mkdir -m 1777 "$1" 109 else 110 chmod 1777 "$1" 111 fi 112 } 113 114 check_dir $SPOOLDIR/spool 115 check_dir $SPOOLDIR/undelivered 116 } 117 118 100 119 ## Main 101 120 case "$1" in
Note: See TracChangeset
for help on using the changeset viewer.