Bug 4406

Summary: koha-zebra-ctl.sh missing LSB information
Product: Koha Reporter: Jared Camins <camins>
Component: Installation and upgrade (command-line installer)Assignee: MJ Ray (software.coop) <mjr>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: trivial    
Priority: PATCH-Sent (DO NOT USE) CC: chris, jcamins, magnus, mjr, mydsls
Version: unspecified   
Hardware: PC   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Added LSB information and copyright headers to two scripts in misc/bin. Thanks to Mahesh T Pai <paivakil@gmail.com> for the mailing list post Message-ID: <87y60x10de.fsf@gmail.com> containing them.
Signed-off patch

Description Chris Cormack 2010-05-21 01:26:48 UTC


---- Reported by camins@numismatics.org 2010-04-26 15:49:21 ----

Under Debian Lenny, running update-rc.d per the instructions result in a warning. I believe the problem is lack of runtime dependency information, but it might also be that the script does not support the status and force-reload commands. Everything seems to work fine even with the warning, however. Output is below.

$ sudo update-rc.d koha-zebra-daemon defaults
update-rc.d: warning: /etc/init.d/koha-zebra-daemon missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
 Adding system startup for /etc/init.d/koha-zebra-daemon ...
   /etc/rc0.d/K20koha-zebra-daemon -> ../init.d/koha-zebra-daemon
   /etc/rc1.d/K20koha-zebra-daemon -> ../init.d/koha-zebra-daemon
   /etc/rc6.d/K20koha-zebra-daemon -> ../init.d/koha-zebra-daemon
   /etc/rc2.d/S20koha-zebra-daemon -> ../init.d/koha-zebra-daemon
   /etc/rc3.d/S20koha-zebra-daemon -> ../init.d/koha-zebra-daemon
   /etc/rc4.d/S20koha-zebra-daemon -> ../init.d/koha-zebra-daemon
   /etc/rc5.d/S20koha-zebra-daemon -> ../init.d/koha-zebra-daemon



--- Bug imported by chris@bigballofwax.co.nz 2010-05-21 01:26 UTC  ---

This bug was previously known as _bug_ 4406 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4406

Unknown operating system Linux - Debian. Setting to default OS "All".
Actual time not defined. Setting to 0.0
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.

Comment 1 MJ Ray (software.coop) 2011-06-20 17:02:47 UTC Comment hidden (obsolete)
Comment 2 Magnus Enger 2011-06-21 07:31:43 UTC
Created attachment 4513 [details] [review]
Signed-off patch

After applying the patch (and doing an upgrade, on a dev install), the warning no longer appears: 

$ sudo ln -s /home/magnus/sites/kohanor32-dev/bin/koha-zebra-ctl.sh /etc/init.d/koha-zebra-daemon
$ sudo update-rc.d koha-zebra-daemon defaults
 Adding system startup for /etc/init.d/koha-zebra-daemon ...
   /etc/rc0.d/K20koha-zebra-daemon -> ../init.d/koha-zebra-daemon
   /etc/rc1.d/K20koha-zebra-daemon -> ../init.d/koha-zebra-daemon
   /etc/rc6.d/K20koha-zebra-daemon -> ../init.d/koha-zebra-daemon
   /etc/rc2.d/S20koha-zebra-daemon -> ../init.d/koha-zebra-daemon
   /etc/rc3.d/S20koha-zebra-daemon -> ../init.d/koha-zebra-daemon
   /etc/rc4.d/S20koha-zebra-daemon -> ../init.d/koha-zebra-daemon
   /etc/rc5.d/S20koha-zebra-daemon -> ../init.d/koha-zebra-daemon

Signing off!
Comment 3 Chris Cormack 2011-06-25 14:45:56 UTC
Pushed to master please test