Ignore:
Timestamp:
Jun 29, 2010, 7:10:14 PM (14 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
master, debian, mac, no-cups, web
Children:
25df647
Parents:
cd17920
git-author:
Jessica B. Hamrick <jhamrick@…> (06/29/10 19:10:14)
git-committer:
Jessica B. Hamrick <jhamrick@…> (06/29/10 19:10:14)
Message:

Use /tmp instead of /var/run in queue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • queue/lib/build-gutenbach-queue

    r6157f97 r8b676cb  
    11#!/bin/bash
    22
    3 if [ -e /var/run/gutenbach/current_queue_temp ]; then
    4     rm /var/run/gutenbach/current_queue_temp
     3if [ -e /tmp/gutenbach/current_queue_temp ]; then
     4    rm /tmp/gutenbach/current_queue_temp
    55fi
    66
    77while true; do
    88    time=$(date)
    9     echo "This is a work in progress!  Please send bugs to jhamrick." >> /var/run/gutenbach/current_queue_temp
    10     echo "" >> /var/run/gutenbach/current_queue_temp
    11     echo "As of $time:" >> /var/run/gutenbach/current_queue_temp
    12     echo "" >> /var/run/gutenbach/current_queue_temp
    13     /usr/lib/gutenbach/queue/queue >> /var/run/gutenbach/current_queue_temp
    14     mv /var/run/gutenbach/current_queue_temp /var/run/gutenbach/current_queue
    15     chmod ugoa+r /var/run/gutenbach/current_queue
     9    echo "This is a work in progress!  Please send bugs to jhamrick." >> /tmp/gutenbach/current_queue_temp
     10    echo "" >> /tmp/gutenbach/current_queue_temp
     11    echo "As of $time:" >> /tmp/gutenbach/current_queue_temp
     12    echo "" >> /tmp/gutenbach/current_queue_temp
     13    /usr/lib/gutenbach/queue/queue >> /tmp/gutenbach/current_queue_temp
     14    mv /tmp/gutenbach/current_queue_temp /tmp/gutenbach/current_queue
     15    chmod ugoa+r /tmp/gutenbach/current_queue
    1616done
Note: See TracChangeset for help on using the changeset viewer.