Changeset 937
- Timestamp:
- Jan 14, 2008 10:05:56 PM (5 years ago)
- Location:
- trunk/debirf
- Files:
-
- 2 edited
-
debian/changelog (modified) (1 diff)
-
fs/usr/share/debirf/modules/xkiosk (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/debirf/debian/changelog
r931 r937 21 21 * changed old "networking" module to "network" 22 22 * added root-passwd module, and added it to xkiosk profile. 23 * added Vcs-Svn, Vcs-Browser, and XS-Dm-Upload-Allowed fields to 24 debian/control 25 * make xkiosk back off if there are 5 restarts in under a minute 26 (closes CMRG #74) 23 27 24 28 -- Jameson Rollins <jrollins@fifthhorseman.net> Sun, 13 Jan 2008 22:01:57 -0500 -
trunk/debirf/fs/usr/share/debirf/modules/xkiosk
r927 r937 89 89 # creat run script 90 90 # guest users starts X 91 cat << EOF> "$RUNIT_DIR_DEBIRF"/run91 cat <<'EOF' > "$RUNIT_DIR_DEBIRF"/run 92 92 #!/bin/sh 93 93 exec 2>&1 94 95 # only allow 5 attempts at starting up X each minute. This gives 96 # debirf admins a chance to fix from the console if there's repeated 97 # failing invocations of the X server (see 98 # http://cmrg.fifthhorseman.net/ticket/74) 99 100 BUCKETDIR=./bucket 101 mkdir -p "$BUCKETDIR" 102 find "$BUCKETDIR" -type f '!' -cmin 1 -delete 103 if [ $(find "$BUCKETDIR" -type f | wc -l ) -ge 5 ]; then 104 echo "5 or more retries in the last minute. Waiting a minute..." 105 sleep 60 106 fi 107 touch "$BUCKETDIR"/$(date +%s) 108 94 109 exec chpst -u guest:audio:video -e env /usr/bin/startx 95 110 EOF
Note: See TracChangeset
for help on using the changeset viewer.

