Changeset f032233
- Timestamp:
- Mar 20, 2010, 9:04:07 PM (15 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gutenbach/debian/gutenbach.init
r568d777 rf032233 17 17 chmod 0777 /var/run/gutenbach/status 18 18 19 if [ -x /etc/init.d/lprng ]; then20 script="lprng"21 elif [ -x /etc/init.d/debathena-lprng ]; then22 script="debathena-lprng"23 else24 exit 125 fi26 27 if which invoke-rc.d >/dev/null 2>&1; then28 invoke-rc.d "$script" start29 else30 /etc/init.d/"$script" start31 fi32 19 ;; 33 20 34 21 stop) 35 if [ -x /etc/init.d/lprng ]; then36 script="lprng"37 elif [ -x /etc/init.d/debathena-lprng ]; then38 script="debathena-lprng"39 else40 exit 141 fi42 22 43 23 if [ -e /var/run/gutenbach ]; then … … 45 25 fi 46 26 47 if which invoke-rc.d >/dev/null 2>&1; then48 invoke-rc.d "$script" stop49 else50 /etc/init.d/"$script" stop51 fi52 27 ;; 53 28 54 29 restart) 55 if [ -x /etc/init.d/lprng ]; then56 script="lprng"57 elif [ -x /etc/init.d/debathena-lprng ]; then58 script="debathena-lprng"59 else60 exit 161 fi62 30 63 31 if [ -e /var/run/gutenbach ]; then … … 65 33 fi 66 34 67 if which invoke-rc.d >/dev/null 2>&1; then68 invoke-rc.d "$script" stop69 else70 /etc/init.d/"$script" stop71 fi72 35 73 36 mkdir /var/run/gutenbach 74 37 touch /var/run/gutenbach/status 75 38 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 81 40 ;; 82 41
Note: See TracChangeset
for help on using the changeset viewer.