On 13 Apr 2003, Warren Togami wrote:
On Sun, 2003-04-13 at 15:42, Warren Togami wrote:
http://bugzilla.fedora.us/show_bug.cgi?id=160
This .src.rpm is dovecot with RH-specific default settings. I modified Jeremy Katz' dovecot-0.99.8.1 package a bit.
I ran into and fixed a few packaging problems listed below, but the last two I'm not exactly sure how to fix. Any suggestions?
One problem within /etc/init.d/dovecot
start() { # Check if pxe is already running if [ ! -f /var/lock/subsys/dovecot ]; then echo -n $"Starting $prog: " /usr/sbin/dovecot & [ -n "
pidofproc /usr/sbin/dovecot
" ] && success RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dovecot echo fi }
Warren, why are you using pidofproc and success yourself ? Red Hat has the infrastructure that takes care of this. I have never have to use these myself.
You could take a look at my sysv-script in my SPEC file. I always embed these files in the SPEC file so that the path-macros affect the sysv-script too.
There I simply do:
start() {
echo -n \$"Starting \$prog: "
daemon \$prog
RETVAL=\$?
echo
touch %{_localstatedir}/lock/subsys/\$prog
return \$RETVAL
}
stop() {
echo -n \$"Shutting down \$prog: "
killproc \$prog
RETVAL=\$?
echo
rm -f %{_localstatedir}/lock/subsys/\$prog
return \$RETVAL
}
Any suggestions to this are welcomed.
Kind regards, -- dag wieers, dag@wieers.com, http://dag.wieers.com/ -- �Any errors in spelling, tact or fact are transmission errors�