Changeset 39452be


Ignore:
Timestamp:
Dec 12, 2009, 5:41:52 PM (15 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
master, debian, mac, no-cups, web
Children:
8de196a
Parents:
7f94ef0
git-author:
Jessica B. Hamrick <jhamrick@…> (12/12/09 17:41:52)
git-committer:
Jessica B. Hamrick <jhamrick@…> (12/12/09 17:41:52)
Message:

First commit of gutenbach-queue as an actual package. Not yet tested.

Location:
gutenbach-queue
Files:
11 added
3 deleted
3 moved

Legend:

Unmodified
Added
Removed
  • gutenbach-queue/debian/lib/kill-gutenbach-queue

    r0b5842c r39452be  
    22
    33echo "Stopping view-gutenbach-queue..."
    4 killall -q "/usr/lib/sipbmp3/view-gutenbach-queue"
     4killall -q "/usr/lib/gutenbach/queue/view-gutenbach-queue"
    55echo "Stopping build-gutenbach-queue..."
    6 killall -q "/usr/lib/sipbmp3/build-gutenbach-queue"
     6killall -q "/usr/lib/gutenbach/queue/build-gutenbach-queue"
    77echo "Stopping queue..."
    8 killall -q "/usr/lib/sipbmp3/queue"
     8killall -q "/usr/lib/gutenbach/queue/queue"
    99echo "Stopping exiftool..."
    1010killall -q "/usr/bin/exiftool"
  • gutenbach-queue/debian/lib/queue

    r7f94ef0 r39452be  
    33found_current=
    44
    5 if [ -e "/var/run/sipbmp3/queue_times" ]; then
    6     rm "/var/run/sipbmp3/queue_times"
     5if [ -e "/var/run/gutenbach/queue_times" ]; then
     6    rm "/var/run/gutenbach/queue_times"
    77fi
    88
    9 cd /var/spool/lpd/sipbmp3/
     9cd /var/spool/lpd/gutenbach/
    1010for i in $(ls . | grep ^hf); do
    1111    done=$(cat "$i" | grep done)
    1212    if [ ! -n "$done" ]; then
    1313        timestamp=$(cat "$i" | grep ^job_time= | sed 's/.*=//')
    14         echo "$timestamp:$i" >> /var/run/sipbmp3/queue_times
     14        echo "$timestamp:$i" >> /var/run/gutenbach/queue_times
    1515    fi
    1616done
    1717
    18 if [ -e /var/run/sipbmp3/queue_times ]; then
    19     for i in $(sort /var/run/sipbmp3/queue_times); do
     18if [ -e /var/run/gutenbach/queue_times ]; then
     19    for i in $(sort /var/run/gutenbach/queue_times); do
    2020        i=$(echo "$i" | sed 's/.*://')
    2121        prefix="df"${i:2}
     
    2525        user=${user:2}
    2626   
    27         if [ -e /var/run/sipbmp3/exiftool_data ]; then
    28             rm /var/run/sipbmp3/exiftool_data
     27        if [ -e /var/run/gutenbach/exiftool_data ]; then
     28            rm /var/run/gutenbach/exiftool_data
    2929        fi
    3030
    31         exiftool "$song" >> /var/run/sipbmp3/exiftool_data
    32         title=$(cat /var/run/sipbmp3/exiftool_data | grep "^Title " | sed 's/.*: //')
    33         artist=$(cat /var/run/sipbmp3/exiftool_data | grep "^Artist " | sed 's/.*: //')
     31        exiftool "$song" >> /var/run/gutenbach/exiftool_data
     32        title=$(cat /var/run/gutenbach/exiftool_data | grep "^Title " | sed 's/.*: //')
     33        artist=$(cat /var/run/gutenbach/exiftool_data | grep "^Artist " | sed 's/.*: //')
    3434
    3535        if [ -z "$found_current" ]; then
     
    3737            host=${host:2}
    3838            filenm="$(cat $i | grep "^filenames" | sed -e 's/filenames=//')"
    39             album=$(cat /var/run/sipbmp3/exiftool_data | grep "^Album " | sed 's/.*: //')
     39            album=$(cat /var/run/gutenbach/exiftool_data | grep "^Album " | sed 's/.*: //')
    4040            echo "$user@$host is currently playing: "
    4141            echo "$filenm"
  • gutenbach-queue/debian/lib/view-gutenbach-queue

    r0b5842c r39452be  
    11#!/bin/bash
    22
    3 daemon --running --name gutenbach-queue -F /var/run/sipbmp3/gutenbach-queue.pid
     3daemon --running --name gutenbach-queue -F /var/run/gutenbach/gutenbach-queue.pid
    44if [ "$?" == 0 ]; then
    5     watch -t -n 1 cat /var/run/sipbmp3/current_queue
     5    watch -t -n 1 cat /var/run/gutenbach/current_queue
    66else
    77    echo "The gutenbach queue daemon is not running.  Please start it at /etc/init.d/gutenbach-queue."
Note: See TracChangeset for help on using the changeset viewer.