Browse Source

rc script clean up

master
Christoph Schug 23 years ago committed by Ralf S. Engelschall
parent
commit
cbabe68e3c
  1. 3
      cvs/cvs.spec
  2. 4
      cvs/rc.cvs

3
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

4
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

Loading…
Cancel
Save