3dc22e7fb2
This adds commands required to control the SIP server. These commands are: * koha-enable-sip - copies the SIP config to the sites directory * koha-start-sip - starts the SIP server processes * koha-stop-sip - stops the SIP server processes It also calls these as appropriate from the koha-common init script. To use: 1) sudo koha-enable-sip instancename 2) sudo vim /etc/koha/sites/instancename/SIPconfig.xml Do whatever is needed for your site's SIP configuration 3) sudo koha-start-sip instancename To test: 1) Build packages with this patch 2) Ensure that sudo koha-start-sip instancename doesn't do anything 3) Run sudo koha-enable-sip instancename 4) Edit /etc/koha/sites/instancename/SIPconfig.xml if needed (probably not required for testing) 5) Run sudo koha-start-sip instancename 6) Note that the sip processes are now running 7) Run sudo koha-stop-sip instancename 8) Note that the sip processes have gone 9) Reboot your Koha server 10) Note that the sip processes are back Sponsored-By: Waitaki District Council Libraries Sponsored-By: South Taranaki District Council Libraries Sponsored-By: Horowhenua District Council Libraries Sponsored-By: Rangitikei District Council Libraries Signed-off-by: Magnus Enger <magnus@enger.priv.no> Works as advertised. koha-start-sip without a prior koha-enable-sip does nothing. koha-enable-sip copies the SIP config file to the instance directory. After koha-enable-sip, koha-start-sip and koha-stop-sip works as expected. After a reboot, the SIP processes are still running. I have not actually tested the SIP servers after they have been started, but assume they work the same as always. The man pages look good. The new commands should also have been added to the man page for koha-common. I'll do a followup for that. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
57 lines
1.9 KiB
XML
57 lines
1.9 KiB
XML
<article xmlns='http://docbook.org/ns/docbook'>
|
|
<title>koha-enable-sip</title>
|
|
<info>
|
|
<productname>Koha</productname> is the first free software library automation package.
|
|
<author>
|
|
<personname>
|
|
<firstname>Robin</firstname>
|
|
<surname>Sheat</surname>
|
|
</personname>
|
|
<affiliation>
|
|
<orgname>Catalyst IT</orgname>
|
|
<uri>http://www.catalyst.net.nz</uri>
|
|
</affiliation>
|
|
<contrib>Author</contrib>
|
|
</author>
|
|
</info>
|
|
|
|
<refentry xml:id="koha-enable-sip">
|
|
|
|
<refmeta>
|
|
<refentrytitle>koha-enable-sip</refentrytitle>
|
|
<manvolnum>8</manvolnum>
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
|
<refname>koha-enable-sip</refname>
|
|
<refpurpose>Copies the SIP configuration file to allow SIP to be controlled by init scripts.</refpurpose>
|
|
<refclass>UNIX/Linux</refclass>
|
|
</refnamediv>
|
|
|
|
<refsynopsisdiv>
|
|
<cmdsynopsis>
|
|
<command>koha-enable-sip</command>
|
|
<arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
|
|
</cmdsynopsis>
|
|
</refsynopsisdiv>
|
|
|
|
<refsect1><title>Description</title>
|
|
<para>This copies the default SIP configuration file /etc/koha/SIPconfig.xml to the
|
|
/etc/koha/sites/instancename directory. This allows it to be started by
|
|
<command>koha-start-sip(8)</command>, and <command>koha-stop-sip</command>. In turn,
|
|
this means that it will be started on boot and stopped on shutdown.</para>
|
|
<para>After running this, you will need to edit the newly created file to configure it
|
|
for your site.</para>
|
|
<para>To disable SIP again, delete or rename the configuration file.</para>
|
|
</refsect1>
|
|
|
|
<refsect1><title>See also</title>
|
|
<simplelist type="inline">
|
|
<member><command>koha-start-sip(8)</command></member>
|
|
<member><command>koha-stop-sip(8)</command></member>
|
|
</simplelist>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
</article>
|