Bug 113926

Summary: iiimf-server should %post chkconfig --add init.d script
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: im-sdkAssignee: Yu Shao <yshao>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: eng-i18n-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-02-05 19:27:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jens Petersen 2004-01-20 08:02:18 UTC
Description of problem:
iiimf-server contains an init.d script, but it doesn't
set it up when it is installed.

Version-Release number of selected component (if applicable):
im-sdk-11_4-4

How reproducible:
every time

Steps to Reproduce:
1. Install iiimf-server.
2. chkconfig --list IIimf
  
Actual results:
service IIim supports chkconfig, but is not referenced in any runlevel
(run 'chkconfig --add IIim')

Expected results:
IIim            0:off   1:off   2:on    3:on    4:on    5:on    6:off

Additional info:
Something like this needs to be added to the spec file:

%post
/sbin/chkconfig --add IIim

%preun
if [ "$1" = 0 ] ; then
  service IIim stop >/dev/null 2>&1
  /sbin/chkconfig --del IIim
fi

%postun
if [ "$1" -ge "1" ]; then
  service IIim condrestart >/dev/null 2>&1
fi

Comment 1 Yu Shao 2004-02-05 19:27:49 UTC
It is in 11_4-7.

Comment 2 Jens Petersen 2004-02-06 08:06:53 UTC
Thanks, confirmed fixed in 11.4-7.