Changeset f032233


Ignore:
Timestamp:
Mar 20, 2010, 9:04:07 PM (15 years ago)
Author:
Yuri Lin <yuri@…>
Branches:
master, debian, mac, no-cups, nodebathena, web
Children:
775a6be
Parents:
4efd348
git-author:
Yuri Lin <yuri@…> (03/20/10 21:04:07)
git-committer:
Yuri Lin <yuri@…> (03/20/10 21:04:07)
Message:

Remove the dependency on lprng from the init script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gutenbach/debian/gutenbach.init

    r568d777 rf032233  
    1717    chmod 0777 /var/run/gutenbach/status
    1818   
    19     if [ -x /etc/init.d/lprng ]; then
    20         script="lprng"
    21     elif [ -x /etc/init.d/debathena-lprng ]; then
    22         script="debathena-lprng"
    23     else
    24         exit 1
    25     fi
    26 
    27     if which invoke-rc.d >/dev/null 2>&1; then
    28         invoke-rc.d "$script" start
    29     else
    30         /etc/init.d/"$script" start
    31     fi
    3219    ;;
    3320
    3421  stop)
    35     if [ -x /etc/init.d/lprng ]; then
    36         script="lprng"
    37     elif [ -x /etc/init.d/debathena-lprng ]; then
    38         script="debathena-lprng"
    39     else
    40         exit 1
    41     fi
    4222   
    4323    if [ -e /var/run/gutenbach ]; then
     
    4525    fi
    4626
    47     if which invoke-rc.d >/dev/null 2>&1; then
    48         invoke-rc.d "$script" stop
    49     else
    50         /etc/init.d/"$script" stop
    51     fi
    5227    ;;
    5328
    5429  restart)
    55     if [ -x /etc/init.d/lprng ]; then
    56         script="lprng"
    57     elif [ -x /etc/init.d/debathena-lprng ]; then
    58         script="debathena-lprng"
    59     else
    60         exit 1
    61     fi
    6230   
    6331    if [ -e /var/run/gutenbach ]; then
     
    6533    fi
    6634
    67     if which invoke-rc.d >/dev/null 2>&1; then
    68         invoke-rc.d "$script" stop
    69     else
    70         /etc/init.d/"$script" stop
    71     fi
    7235
    7336    mkdir /var/run/gutenbach
    7437    touch /var/run/gutenbach/status
    7538    chmod 0777 /var/run/gutenbach/status
    76     if which invoke-rc.d >/dev/null 2>&1; then
    77         invoke-rc.d "$script" start
    78     else
    79        /etc/init.d/"$script" start
    80     fi
     39
    8140    ;;
    8241
Note: See TracChangeset for help on using the changeset viewer.