|
|
@@ -31,6 +31,7 @@
|
|
|
|
|
|
%start -u @l_susr@
|
|
|
rcService tftp enable yes || exit 0
|
|
|
+ rcService tftp active yes && exit 0
|
|
|
opts="-l -u @l_nusr@ -m @l_prefix@/etc/tftp/tftpd.remap"
|
|
|
if [ ".$tftp_listen" != . ]; then
|
|
|
opts="$opts -a $tftp_listen"
|
|
|
@@ -42,11 +43,13 @@
|
|
|
|
|
|
%stop -u @l_susr@
|
|
|
rcService tftp enable yes || exit 0
|
|
|
+ rcService tftp active no && exit 0
|
|
|
tftp_signal TERM
|
|
|
rm -f $tftp_pidfile 2>&1 || true
|
|
|
|
|
|
%restart -u @l_susr@
|
|
|
rcService tftp enable yes || exit 0
|
|
|
+ rcService tftp active no && exit 0
|
|
|
rc tftp stop
|
|
|
sleep 2
|
|
|
rc tftp start
|
|
|
@@ -57,8 +60,8 @@
|
|
|
# rotate logfile
|
|
|
shtool rotate -f \
|
|
|
-n ${tftp_log_numfiles} -s ${tftp_log_minsize} -d \
|
|
|
- -z ${tftp_log_complevel} -o @l_nusr@ -g @l_ngrp@ -m 644 \
|
|
|
+ -z ${tftp_log_complevel} -o @l_susr@ -g @l_mgrp@ -m 644 \
|
|
|
-P "${tftp_log_prolog}" \
|
|
|
- -E "${tftp_log_epilog}" \
|
|
|
+ -E "${tftp_log_epilog} && rc tftp restart" \
|
|
|
@l_prefix@/var/tftp/tftp.log
|
|
|
|