AMULED_HOME is a better name anyway. Incidentally a check that the folder exists (and perhaps that the AMULED_USER can use it) could be made and the warning message could additionally be adapted. So the proposed changes would be :
*** 14,24 **** exit 0 fi ! HOME=`getent passwd $AMULED_USER | awk -F: '{print $6}'` if [ -z "$HOME" ]; then echo "aMule user does not exists or has no home folder. Check /etc/default/amule-daemon settings" exit 0 fi start () --- 14,31 ---- exit 0 fi ! if [ -z "$AMULED_HOME" ]; then ! HOME=`getent passwd $AMULED_USER | awk -F: '{print $6}'` ! else ! HOME=$AMULED_HOME ! fi if [ -z "$HOME" ]; then echo "aMule user does not exists or has no home folder. Check /etc/default/amule-daemon settings" exit 0 + elif ! [ -d "$HOME" ]; then + echo "aMule user's home folder does not exist. Check /etc/default/amule-daemon settings" + exit 0 fi start () Regards -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]