> I have just created and committed a Debian package for the official > plugin that replaces the default SQLite database of Orthanc, by a > PostgreSQL back-end [1]. This package turns Orthanc into a scalable > vendor neutral archive for DICOM images.
I have just thought about a possible problem with this plugin. Indeed, using it makes the startup of the Orthanc service dependent on the startup of the PostgreSQL service: Orthanc will crash if it started after PostgreSQL. It would therefore be logical to modify the "/etc/init.d/orthanc" file [1] by applying the patch attached to this mail. However, this dependency cannot be added inside the main "orthanc" package, as PostgreSQL is not a dependency of the default version of Orthanc (that internally uses SQLite). Could someone tell me how this case could be handled? Should the "orthanc-postgresql" package patch "/etc/init.d/orthanc" from "postinst" and un-apply the patch from "postrm"? Thanks, Sébastien- [1] http://anonscm.debian.org/viewvc/debian-med/trunk/packages/orthanc/trunk/debian/orthanc.init?view=markup
--- orthanc.init.orig 2015-03-02 12:27:27.307435227 +0100 +++ orthanc.init 2015-03-02 12:27:39.107434929 +0100 @@ -1,8 +1,8 @@ #! /bin/sh ### BEGIN INIT INFO # Provides: orthanc -# Required-Start: $local_fs $remote_fs $syslog -# Required-Stop: $local_fs $remote_fs $syslog +# Required-Start: $local_fs $remote_fs $syslog postgresql +# Required-Stop: $local_fs $remote_fs $syslog postgresql # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Orthanc init script