Bug 113926 - iiimf-server should %post chkconfig --add init.d script
Summary: iiimf-server should %post chkconfig --add init.d script
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: im-sdk
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Yu Shao
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-01-20 08:02 UTC by Jens Petersen
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-02-05 19:27:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.