1.1 --- a/tor/rc.tor Fri Jan 24 17:02:56 2014 +0100 1.2 +++ b/tor/rc.tor Sat Jan 25 18:21:16 2014 +0100 1.3 @@ -18,7 +18,7 @@ 1.4 [ -f $tor_pidfile ] && kill -$1 `cat $tor_pidfile` 1.5 } 1.6 1.7 -%status -u @l_rusr@ -o 1.8 +%status -u @l_susr@ -o 1.9 tor_usable="unknown" 1.10 tor_active="no" 1.11 rcService tor enable yes && \ 1.12 @@ -27,24 +27,24 @@ 1.13 echo "tor_usable=\"$tor_usable\"" 1.14 echo "tor_active=\"$tor_active\"" 1.15 1.16 -%start -u @l_rusr@ 1.17 +%start -u @l_susr@ 1.18 rcService tor enable yes || exit 0 1.19 rcService tor active yes && exit 0 1.20 @l_prefix@/bin/tor 1.21 1.22 -%stop -u @l_rusr@ 1.23 +%stop -u @l_susr@ 1.24 rcService tor enable yes || exit 0 1.25 rcService tor active no && exit 0 1.26 tor_signal TERM 1.27 sleep 2 1.28 rm -f $tor_pidfile >/dev/null 2>&1 || true 1.29 1.30 -%restart -u @l_rusr@ 1.31 +%restart -u @l_susr@ 1.32 rcService tor enable yes || exit 0 1.33 rcService tor active no && exit 0 1.34 rc tor stop start 1.35 1.36 -%reload -u @l_rusr@ 1.37 +%reload -u @l_susr@ 1.38 rcService tor enable yes || exit 0 1.39 rcService tor active no && exit 0 1.40 tor_signal HUP 1.41 @@ -53,7 +53,7 @@ 1.42 rcService tor enable yes || exit 0 1.43 shtool rotate -f \ 1.44 -n ${tor_log_numfiles} -s ${tor_log_minsize} -d \ 1.45 - -z ${tor_log_complevel} -m 664 -o @l_rusr@ -g @l_rgrp@ \ 1.46 + -z ${tor_log_complevel} -m 664 -o @l_susr@ -g @l_rgrp@ \ 1.47 -P "${tor_log_prolog}" \ 1.48 -E "${tor_log_epilog}; rc tor restart" \ 1.49 ${tor_logfile}