Changeset 354a53e


Ignore:
Timestamp:
Jun 29, 2010, 7:09:07 PM (14 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
debian
Children:
b7ab9d0
Parents:
888cfa2
git-author:
Jessica B. Hamrick <jhamrick@…> (06/29/10 19:09:07)
git-committer:
Jessica B. Hamrick <jhamrick@…> (06/29/10 19:09:07)
Message:

Use /tmp instead of /var/run in gutenbach-queue

Location:
debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • debian/gutenbach-queue.init

    r632040d r354a53e  
    1212case "$1" in
    1313    start)
    14         daemon -F /var/run/gutenbach/gutenbach-queue.pid --name gutenbach-queue --running
     14        if [ ! -e /tmp/gutenbach ]; then
     15            mkdir /tmp/gutenbach
     16        fi
     17        chmod ugoa+rw /tmp/gutenbach
     18
     19        daemon -F /tmp/gutenbach/gutenbach-queue.pid --name gutenbach-queue --running
    1520        if [ "$?" == 0 ]; then
    1621            echo "The gutenbach queue daemon is already running."
    1722        else
    18             if [ ! -e /var/run/gutenbach/current_queue ]; then
    19                 touch /var/run/gutenbach/current_queue
    20                 chmod ugoa+r /var/run/gutenbach/current_queue
     23            if [ ! -e /tmp/gutenbach/current_queue ]; then
     24                touch /tmp/gutenbach/current_queue
     25                chmod ugoa+r /tmp/gutenbach/current_queue
    2126            fi
    22             if [ ! -e /var/run/gutenbach/queue_times ]; then
    23                 touch /var/run/gutenbach/queue_times
    24             fi
    25             if [ ! -e /var/run/gutenbach/exiftool_data ]; then
    26                 touch /var/run/gutenbach/exiftool_data
    27             fi
    28             if [ ! -e /var/run/gutenbach/current_queue_temp ]; then
    29                 touch /var/run/gutenbach/current_queue_temp
     27            if [ ! -e /tmp/gutenbach/current_queue_temp ]; then
     28                touch /tmp/gutenbach/current_queue_temp
    3029            fi
    3130
    3231            echo "Starting gutenbach daemon..."
    33             daemon -F /var/run/gutenbach/gutenbach-queue.pid --name gutenbach-queue -u daemon /usr/lib/gutenbach/queue/build-gutenbach-queue
     32            daemon -F /tmp/gutenbach/gutenbach-queue.pid --name gutenbach-queue -u daemon /usr/lib/gutenbach/queue/build-gutenbach-queue
    3433            echo "Done."
    3534        fi
     
    3736
    3837    stop)
    39         daemon -F /var/run/gutenbach/gutenbach-queue.pid --stop --name gutenbach-queue
     38        daemon -F /tmp/gutenbach/gutenbach-queue.pid --stop --name gutenbach-queue
    4039        /usr/lib/gutenbach/queue/kill-gutenbach-queue
    4140
    42         if [ -e /var/run/gutenbach/current_queue ]; then
    43             rm /var/run/gutenbach/current_queue
     41        if [ -e /tmp/gutenbach/current_queue ]; then
     42            rm /tmp/gutenbach/current_queue
    4443        fi
    45         if [ -e /var/run/gutenbach/queue_times ]; then
    46             rm /var/run/gutenbach/queue_times
    47         fi
    48         if [ -e /var/run/gutenbach/exiftool_data ]; then
    49             rm /var/run/gutenbach/exiftool_data
    50         fi
    51         if [ -e /var/run/gutenbach/current_queue_temp ]; then
    52             rm /var/run/gutenbach/current_queue_temp
     44        if [ -e /tmp/gutenbach/current_queue_temp ]; then
     45            rm /tmp/gutenbach/current_queue_temp
    5346        fi
    5447        ;;
    5548
    5649    restart)
    57         daemon -F /var/run/gutenbach/gutenbach-queue.pid --stop --name gutenbach-queue
     50        daemon -F /tmp/gutenbach/gutenbach-queue.pid --stop --name gutenbach-queue
    5851        /usr/lib/gutenbach/queue/kill-gutenbach-queue
    5952
    60         if [ -e /var/run/gutenbach/current_queue ]; then
    61             rm /var/run/gutenbach/current_queue
     53        if [ -e /tmp/gutenbach/current_queue ]; then
     54            rm /tmp/gutenbach/current_queue
    6255        fi
    63         if [ -e /var/run/gutenbach/queue_times ]; then
    64             rm /var/run/gutenbach/queue_times
    65         fi
    66         if [ -e /var/run/gutenbach/exiftool_data ]; then
    67             rm /var/run/gutenbach/exiftool_data
    68         fi
    69         if [ -e /var/run/gutenbach/current_queue_temp ]; then
    70             rm /var/run/gutenbach/current_queue_temp
     56        if [ -e /tmp/gutenbach/current_queue_temp ]; then
     57            rm /tmp/gutenbach/current_queue_temp
    7158        fi
    7259
    73         touch /var/run/gutenbach/current_queue
    74         chmod ugoa+r /var/run/gutenbach/current_queue
    75         touch /var/run/gutenbach/queue_times
    76         touch /var/run/gutenbach/exiftool_data
    77         touch /var/run/gutenbach/current_queue_temp
     60        if [ ! -e /tmp/gutenbach ]; then
     61            mkdir /tmp/gutenbach
     62        fi
     63
     64        chmod ugoa+rw /tmp/gutenbach
     65        touch /tmp/gutenbach/current_queue
     66        chmod ugoa+r /tmp/gutenbach/current_queue
     67        touch /tmp/gutenbach/current_queue_temp
    7868
    7969        echo "Starting gutenbach daemon..."
    80         daemon -F /var/run/gutenbach/gutenbach-queue.pid --name gutenbach-queue -u daemon /usr/lib/gutenbach/queue/build-gutenbach-queue
     70        daemon -F /tmp/gutenbach/gutenbach-queue.pid --name gutenbach-queue -u daemon /usr/lib/gutenbach/queue/build-gutenbach-queue
    8171        echo "Done."
    8272        ;;
  • debian/gutenbach-queue.postinst

    raa5ccdd r354a53e  
    3131        fi
    3232
    33         chown -R daemon:daemon /var/run/gutenbach
    34         chmod og+rw /var/run/gutenbach
    35 
    3633        adduser daemon audio
    3734    ;;
Note: See TracChangeset for help on using the changeset viewer.