Changes between Version 5 and Version 6 of UserGuide/Service


Ignore:
Timestamp:
02/06/2010 06:43:19 AM (12 years ago)
Author:
johnnyg
Comment:

add umask option

Legend:

Unmodified
Added
Removed
Modified
  • UserGuide/Service

    v5 v6  
    5555PIDFILE1=/var/run/$NAME1.pid 
    5656PIDFILE2=/var/run/$NAME2.pid 
     57UMASK=22                      # Change this to 0 if running deluged as its own user 
    5758PKGNAME=deluge-daemon 
    5859SCRIPTNAME=/etc/init.d/$PKGNAME 
     
    9394   #   2 if daemon could not be started 
    9495   start-stop-daemon --start --background --quiet --pidfile $PIDFILE1 --exec $DAEMON1 \ 
    95       --chuid $DELUGED_USER --user $DELUGED_USER --test > /dev/null 
     96      --chuid $DELUGED_USER --user $DELUGED_USER --umask $UMASK --test > /dev/null 
    9697   RETVAL1="$?" 
    9798   start-stop-daemon --start --background --quiet --pidfile $PIDFILE2 --exec $DAEMON2 \ 
    98       --chuid $DELUGED_USER --user $DELUGED_USER --test > /dev/null 
     99      --chuid $DELUGED_USER --user $DELUGED_USER --umask $UMASK --test > /dev/null 
    99100   RETVAL2="$?" 
    100101   [ "$RETVAL1" = "0" -a "$RETVAL2" = "0" ] || return 1 
    101102 
    102103   start-stop-daemon --start --background --quiet --pidfile $PIDFILE1 --make-pidfile --exec $DAEMON1 \ 
    103       --chuid $DELUGED_USER --user $DELUGED_USER -- $DAEMON1_ARGS 
     104      --chuid $DELUGED_USER --user $DELUGED_USER --umask $UMASK -- $DAEMON1_ARGS 
    104105   RETVAL1="$?" 
    105106        sleep 2 
    106107   start-stop-daemon --start --background --quiet --pidfile $PIDFILE2 --make-pidfile --exec $DAEMON2 \ 
    107       --chuid $DELUGED_USER --user $DELUGED_USER -- $DAEMON2_ARGS 
     108      --chuid $DELUGED_USER --user $DELUGED_USER --umask $UMASK -- $DAEMON2_ARGS 
    108109   RETVAL2="$?" 
    109110   [ "$RETVAL1" = "0" -a "$RETVAL2" = "0" ] || return 2