瀏覽代碼

rc script clean up

Christoph Schug 22 年之前
父節點
當前提交
cbabe68e3c
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 2 1
      cvs/cvs.spec
  2. 2 2
      cvs/rc.cvs

+ 2 - 1
cvs/cvs.spec

@@ -37,7 +37,7 @@ Distribution: OpenPKG [CORE]
 Group:        SCM
 License:      GPL
 Version:      %{V_cvs}
-Release:      20030122
+Release:      20030328
 
 #   optional support for applying the RSE patches
 %option       with_rse_patches              no
@@ -146,6 +146,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.cvs} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d

+ 2 - 2
cvs/rc.cvs

@@ -12,7 +12,7 @@
 %common
     cvs_pserverd_pidfile="@l_prefix@/var/cvs/pserverd.pid"
 
-%start -p 200 -u root
+%start -p 200 -u @l_susr@
     if opServiceEnabled cvs_pserverd; then
         rm -f $cvs_pserverd_pidfile >/dev/null 2>&1 || true
         @l_prefix@/bin/cvs -f $cvs_pserverd_gflags \
@@ -20,7 +20,7 @@
                      -l $cvs_pserverd_listen $cvs_pserverd_lflags
     fi
 
-%stop -p 200 -u root
+%stop -p 200 -u @l_susr@
     if opServiceEnabled cvs_pserverd; then
         if [ -f $cvs_pserverd_pidfile ]; then
             kill -TERM `cat $cvs_pserverd_pidfile` >/dev/null 2>&1 || true