Feature #298
Updated by Antoine LUONG over 8 years ago
Here is the debian init.d script I wrote for Prelude Correlator.
It uses standard LSB functions (which are not Debian specific) and start-stop-daemon, so it should work on other distros with the same tools.
The script can be re-used for other Prelude components, just by replacing the name correlator.
Note: it reads a file _/etc/default/prelude-correlator_ and uses some variables. Here is the Debian default file:
<pre>
DAEMONUSER=prelude-correlator # Users to run the daemons as.
RUN=yes # set to yes to start the server in the init.d script.
# you need to register the "prelude-correlator" profile
# before being able to start the correlator automatically
</pre>
HTH,
Pierre
It uses standard LSB functions (which are not Debian specific) and start-stop-daemon, so it should work on other distros with the same tools.
The script can be re-used for other Prelude components, just by replacing the name correlator.
Note: it reads a file _/etc/default/prelude-correlator_ and uses some variables. Here is the Debian default file:
<pre>
DAEMONUSER=prelude-correlator # Users to run the daemons as.
RUN=yes # set to yes to start the server in the init.d script.
# you need to register the "prelude-correlator" profile
# before being able to start the correlator automatically
</pre>
HTH,
Pierre