=== modified file 'sbin/zsvgen' --- sbin/zsvgen 2014-02-14 07:23:32 +0000 +++ sbin/zsvgen 2014-02-14 06:03:03 +0000 @@ -29,11 +29,11 @@ mkdir -p $zsv_dir # flags + zsv_flags=${svtab_flags[$name]} link=1 - if (($flags[M])); then # Manual + if [[ $zsv_flags == *'!'* ]]; then touch $zsv_dir/down else - # check if the service should be up if $checkf; then rm -f $zsv_dir/down if [[ -p $zsv_control ]]; then === modified file 'zsh-functions/zsv_apply_flags' --- zsh-functions/zsv_apply_flags 2014-02-14 07:23:32 +0000 +++ zsh-functions/zsv_apply_flags 2014-02-10 08:55:11 +0000 @@ -1,9 +1,7 @@ -(($flags[E])) && exec 2>&1 # stdErr -(($flags[N])) && exec >/dev/null # Null -#for c in ${(s::)zsv_flags}; do -# case $c in -# ('&') exec 2>&1;; -# ('@') exec >/dev/null;; -# esac -#done +for c in ${(s::)zsv_flags}; do + case $c in + ('&') exec 2>&1;; + ('@') exec >/dev/null;; + esac +done # vim: ft=zsh noet ts=4 sts=4 sw=4 === modified file 'zsh-functions/zsv_config' --- zsh-functions/zsv_config 2014-02-14 07:23:32 +0000 +++ zsh-functions/zsv_config 2014-02-14 07:00:10 +0000 @@ -5,7 +5,6 @@ zsv_svdir=$zsv_dir:h [[ -e /etc/zsvrc ]] && source /etc/zsvrc : ${zsv_svtab:=/etc/svtab} -: ${zsv_default_flags=E} : ${zsv_default_runf=zsv_generic} : ${zsv_default_logf=zsv_logger} === modified file 'zsh-functions/zsv_eval' --- zsh-functions/zsv_eval 2014-02-14 07:23:32 +0000 +++ zsh-functions/zsv_eval 2014-02-14 06:20:28 +0000 @@ -1,18 +1,7 @@ -unset flags -typeset -g -A flags typeset -g runf logf checkf - if (( $# )); then zsv_setdirs $1 fi - -flags=( ) -local c -for c in "$svtab_flags[$zsv_name]"; do - [[ $c == [a-z] ]] - flags[$c:u]=$? -done - runf=${zsv_default_runf} logf=${zsv_default_logf} if (($+functions[zsv_run_${zsv_name%%.*}])); then === modified file 'zsh-functions/zsv_parse' --- zsh-functions/zsv_parse 2014-02-14 07:23:32 +0000 +++ zsh-functions/zsv_parse 2014-02-14 06:52:22 +0000 @@ -19,7 +19,17 @@ svtab+=$name svtab_flags[$name]=${flags:-$zsv_default_flags} - svtab_sh[$name]=${sh} + svtab_sh[$name]=${sh:-$zsv_default_sh} fi +# while IFS=: read name flags sh; do +# [[ $name == '#'* ]] && continue + # svtab_runf[$name]=${runf:-$zsv_default_runf} + # svtab_logf[$name]=${logf:-$zsv_default_logf} + # if [[ $name == $zsv_name ]]; then + # zsv_flags=${flags:-$zsv_default_flags} + # zsv_runf=${runf:-$zsv_default_runf} + # zsv_logf=${logf:-$zsv_default_logf} + # zsv_sh=${sh:-$zsv_default_sh} + # fi done <$zsv_svtab # vim: ft=zsh noet ts=4 sts=4 sw=4