Changeset 29076


Ignore:
Timestamp:
2011-11-13T23:16:19+01:00 (6 years ago)
Author:
nico
Message:

packages/boxbackup: use new service functions

Location:
packages/utils/boxbackup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/boxbackup/Makefile

    r28238 r29076  
    1010PKG_NAME:=boxbackup 
    1111PKG_VERSION:=0.11.1 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz 
  • packages/utils/boxbackup/files/bbstored.init

    r28023 r29076  
    33 
    44START=90 
    5  
    6  
    7 local NORUN=0 
    85 
    96start() { 
     
    1411        if [ "$EXTERNAL_CONFIG" -eq 1 ] 
    1512        then 
    16                 BXBK_CONFIG_FILE="$EXTERNAL_CONF_FILE"           
     13                BXBK_CONFIG_FILE="$EXTERNAL_CONF_FILE" 
    1714        fi 
    18         [ "$NORUN" != "1" ] && /usr/sbin/bbstored "$BXBK_CONFIG_FILE" 
     15        service_start /usr/sbin/bbstored "$BXBK_CONFIG_FILE" 
    1916} 
    2017 
     
    2219        . /lib/functions/bbstored.sh 
    2320 
    24         if [ -f "$PID_FILE" ] 
    25         then 
    26                 kill $(cat "$PID_FILE") 
    27         else 
    28                 killall bbstored 
    29         fi 
     21        service_stop /usr/sbin/bbstored 
    3022} 
    31  
Note: See TracChangeset for help on using the changeset viewer.