Sfoglia il codice sorgente

Implement features in #202

Michael Schloh von Bennewitz 23 anni fa
parent
commit
627bc4016d
2 ha cambiato i file con 10 aggiunte e 5 eliminazioni
  1. 9 4
      sasl/rc.sasl
  2. 1 1
      sasl/sasl.spec

+ 9 - 4
sasl/rc.sasl

@@ -30,24 +30,29 @@
 
 %start -u @l_susr@
     rcService sasl enable yes || exit 0
+    rcService sasl active yes && exit 0
     @l_prefix@/sbin/saslauthd -a ${sasl_authmech} -n ${sasl_threads}
 
 %stop -u @l_susr@
     rcService sasl enable yes || exit 0
+    rcService sasl active no && exit 0
     sasl_signal TERM
 
 %restart -u @l_susr@
     rcService sasl enable yes || exit 0
-    sasl_signal TERM
+    rcService sasl active no && exit 0
+    rc sasl stop
     sleep 2
-    @l_prefix@/sbin/saslauthd -a ${sasl_authmech} -n ${sasl_threads}
+    rc sasl start
 
 %daily -u @l_susr@
     rcService sasl enable yes || exit 0
+
+    #   rotate logfile
     shtool rotate -f \
         -n ${sasl_log_numfiles} -s ${sasl_log_minsize} -d \
-        -z ${sasl_log_complevel} -o @l_rusr@ -g @l_rgrp@ -m 644 \
+        -z ${sasl_log_complevel} -o @l_susr@ -g @l_mgrp@ -m 644 \
         -P "${sasl_log_prolog}" \
-        -E "${sasl_log_epilog}" \
+        -E "${sasl_log_epilog} && rc sasl restart" \
         @l_prefix@/var/sasl/log/saslauthd.log
 

+ 1 - 1
sasl/sasl.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
 Group:        Cryptography
 License:      BSD
 Version:      2.1.15
-Release:      20030722
+Release:      20030909
 
 #   package options
 %option       with_fsl    yes