Browse Source

rc script clean up

Christoph Schug 23 years ago
parent
commit
0efc470185
2 changed files with 7 additions and 6 deletions
  1. 2 1
      bind/bind.spec
  2. 5 5
      bind/rc.bind

+ 2 - 1
bind/bind.spec

@@ -37,7 +37,7 @@ Distribution: OpenPKG [BASE]
 Group:        DNS
 License:      ISC
 Version:      %{V_bind}
-Release:      20030324
+Release:      20030328
 
 #   package options
 %option       with_dlz_mysql      no
@@ -156,6 +156,7 @@ AutoReqProv:  no
         $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
     %{l_shtool} install -c -m 755 \
         -e 's;@l_prefix@;%{l_prefix};g' \
+        -e 's;@l_susr@;%{l_susr};g' \
         -e 's;@l_musr@;%{l_musr};g' \
         -e 's;@l_mgrp@;%{l_mgrp};g' \
         %{SOURCE rc.bind} \

+ 5 - 5
bind/rc.bind

@@ -9,29 +9,29 @@
     bind_log_minsize="512K"
     bind_log_complevel="9"
 
-%start -p 100 -u root
+%start -p 100 -u @l_susr@
     if opServiceEnabled bind; then
         @l_prefix@/sbin/named
     fi
 
-%stop -p 200 -u root
+%stop -p 200 -u @l_susr@
     if opServiceEnabled bind; then
         @l_prefix@/sbin/rndc stop
     fi
 
-%restart -u root
+%restart -u @l_susr@
     if opServiceEnabled bind; then
         @l_prefix@/sbin/rndc stop
         sleep 1
         @l_prefix@/sbin/named
     fi
 
-%reload -u root
+%reload -u @l_susr@
     if opServiceEnabled bind; then
         @l_prefix@/sbin/rndc reload
     fi
 
-%daily -u root
+%daily -u @l_susr@
     if opServiceEnabled bind; then
         shtool rotate -f \
             -n${bind_log_numfiles} -s${bind_log_minsize} \