[Fedora-directory-devel] Please review: Bug 160235: Add support for /etc/init scripts

Richard Megginson rmeggins at redhat.com
Fri Feb 9 21:36:54 UTC 2007


https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=160235
Resolves: bug 160235
Bug Description: Add support for /etc/init scripts
Reviewed by: ???
Files: see diff
Branch: HEAD
Fix Description: Add the new initscript.  The initscript is called 
$PACKAGE_NAME which by
default is fedora-ds.  This script is created from wrappers/initscript.in,
sed'd by the fixupcmd in Makefile.am during make install.  The way it 
works is
this: service fedora-ds cmd will execute the cmd on all instances (found in
/etc/fedora-ds by default).  service fedora-ds cmd instance will execute 
cmd on
only that instance.  So if you have
/etc/fedora-ds/slapd-foo
/etc/fedora-ds/slapd-bar
and you do
service start fedora-ds
it will start up both slapd-foo and slapd-bar.    If you do
service start fedora-ds bar
it will start up only slapd-bar.  If you do
service start fedora-ds biff
you will get an error message.    The initdir is platform specific (e.g.
/etc/rc.d/init.d on linux, /etc/init.d on Solaris, ?? on hpux) so the
definition was added to the platform dependent section of configure.ac.

The init script is explicitly branded, including the filename.    I 
needed to add
support to the autotool files so that we could change the name of the file.
Since package_name is defined when you use the AC_INIT macro in 
configure.ac,
we don't need to define it elsewhere (e.g. #define BRAND_DS).  So I 
added the
branding and other information to the autotool files, and changed
create_instance to use package_name instead of brand_ds to be consistent.
Having the package_name defined in much fewer places should make it much 
easier
to change in the future if necessary.

I also fixed a compiler warning in ldaprot.h.
Platforms tested: RHEL4, FC6
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none
Diffs: 
https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=147814&action=diff
New initscript.in: 
https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=147815
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-directory-devel/attachments/20070209/2380cfe3/attachment.bin>


More information about the Fedora-directory-devel mailing list