Changeset 354a53e
- Timestamp:
- Jun 29, 2010, 7:09:07 PM (14 years ago)
- 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)
- Location:
- debian
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
debian/gutenbach-queue.init
r632040d r354a53e 12 12 case "$1" in 13 13 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 15 20 if [ "$?" == 0 ]; then 16 21 echo "The gutenbach queue daemon is already running." 17 22 else 18 if [ ! -e / var/run/gutenbach/current_queue ]; then19 touch / var/run/gutenbach/current_queue20 chmod ugoa+r / var/run/gutenbach/current_queue23 if [ ! -e /tmp/gutenbach/current_queue ]; then 24 touch /tmp/gutenbach/current_queue 25 chmod ugoa+r /tmp/gutenbach/current_queue 21 26 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 30 29 fi 31 30 32 31 echo "Starting gutenbach daemon..." 33 daemon -F / var/run/gutenbach/gutenbach-queue.pid --name gutenbach-queue -u daemon /usr/lib/gutenbach/queue/build-gutenbach-queue32 daemon -F /tmp/gutenbach/gutenbach-queue.pid --name gutenbach-queue -u daemon /usr/lib/gutenbach/queue/build-gutenbach-queue 34 33 echo "Done." 35 34 fi … … 37 36 38 37 stop) 39 daemon -F / var/run/gutenbach/gutenbach-queue.pid --stop --name gutenbach-queue38 daemon -F /tmp/gutenbach/gutenbach-queue.pid --stop --name gutenbach-queue 40 39 /usr/lib/gutenbach/queue/kill-gutenbach-queue 41 40 42 if [ -e / var/run/gutenbach/current_queue ]; then43 rm / var/run/gutenbach/current_queue41 if [ -e /tmp/gutenbach/current_queue ]; then 42 rm /tmp/gutenbach/current_queue 44 43 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 53 46 fi 54 47 ;; 55 48 56 49 restart) 57 daemon -F / var/run/gutenbach/gutenbach-queue.pid --stop --name gutenbach-queue50 daemon -F /tmp/gutenbach/gutenbach-queue.pid --stop --name gutenbach-queue 58 51 /usr/lib/gutenbach/queue/kill-gutenbach-queue 59 52 60 if [ -e / var/run/gutenbach/current_queue ]; then61 rm / var/run/gutenbach/current_queue53 if [ -e /tmp/gutenbach/current_queue ]; then 54 rm /tmp/gutenbach/current_queue 62 55 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 71 58 fi 72 59 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 78 68 79 69 echo "Starting gutenbach daemon..." 80 daemon -F / var/run/gutenbach/gutenbach-queue.pid --name gutenbach-queue -u daemon /usr/lib/gutenbach/queue/build-gutenbach-queue70 daemon -F /tmp/gutenbach/gutenbach-queue.pid --name gutenbach-queue -u daemon /usr/lib/gutenbach/queue/build-gutenbach-queue 81 71 echo "Done." 82 72 ;; -
debian/gutenbach-queue.postinst
raa5ccdd r354a53e 31 31 fi 32 32 33 chown -R daemon:daemon /var/run/gutenbach34 chmod og+rw /var/run/gutenbach35 36 33 adduser daemon audio 37 34 ;;
Note: See TracChangeset
for help on using the changeset viewer.