Changeset 674


Ignore:
Timestamp:
10/11/11 10:50:24 (7 months ago)
Author:
jet
Message:

-- Fix Variable name in Debian init script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/builders/packing/debian/debian/crtmpserver.init

    r390 r674  
    3030. /lib/lsb/init-functions 
    3131 
    32 UID=$(getent passwd ${DAEMON_USER} | cut -d":" -f3) 
    33 UID_ARG=" --uid=$UID " 
     32DAEMON_UID=$(getent passwd ${DAEMON_USER} | cut -d":" -f3) 
     33[ -z ${DAEMON_UID} ] && (echo "User ${DAEMON_USER} not exists"; return 1) 
     34DAEMON_UID_ARG=" --uid=${DAEMON_UID} " 
    3435 
    3536do_start() 
     
    4243                || return 1 
    4344        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ 
    44                 $DAEMON_ARGS $UID_ARG $DAEMON_CONF \ 
     45                $DAEMON_ARGS $DAEMON_UID_ARG $DAEMON_CONF \ 
    4546                || return 2 
    4647} 
Note: See TracChangeset for help on using the changeset viewer.