Explorar o código

Implement features in ticket #202

Michael Schloh von Bennewitz %!s(int64=23) %!d(string=hai) anos
pai
achega
d53080ea50
Modificáronse 2 ficheiros con 6 adicións e 3 borrados
  1. 5 2
      tftp/rc.tftp
  2. 1 1
      tftp/tftp.spec

+ 5 - 2
tftp/rc.tftp

@@ -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
 

+ 1 - 1
tftp/tftp.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
 Group:        Networt
 License:      GPL
 Version:      0.34
-Release:      20030731
+Release:      20030909
 
 #   package options
 %option       with_fsl  yes