From 2737b2e3384a99a732a1f67bc5bc5d5bfd14ac7a Mon Sep 17 00:00:00 2001 From: KyoungSoo Park Date: Fri, 27 Apr 2007 16:08:33 +0000 Subject: [PATCH 1/1] fixed %preun --- codemux.spec | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/codemux.spec b/codemux.spec index 337de1c..62ee864 100644 --- a/codemux.spec +++ b/codemux.spec @@ -1,6 +1,6 @@ %define name proper %define version 0.1 -%define release 3%{?pldistro:.%{pldistro}}%{?date:.%{date}} +%define release 4%{?pldistro:.%{pldistro}}%{?date:.%{date}} Summary: CoDemux - HTTP port DeMux Name: codemux @@ -44,16 +44,15 @@ if [ -z "$PL_BOOTCD" ]; then fi %preun -#if [ "$1" = 0 ]; then +if [ "$1" = 0 ]; then # erase, not upgrade -# chkconfig --del codemux + chkconfig --del codemux # stop daemon if its currently running -# if [ "`/etc/init.d/codemux status`" = "running" ]; then -# /etc/init.d/codemux stop -# fi -#fi -# %doc + if [ "`/etc/init.d/codemux status`" = "running" ]; then + /etc/init.d/codemux stop + fi +fi %changelog * Sun Apr 22 2007 KYOUNGSOO PARK - -- 2.43.0