Project

General

Profile

Feature #298

Example init.d script for prelude correlator

Added by Pierre Chifflier almost 16 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Resolution:

Description

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:

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

HTH,
Pierre

prelude-correlator.init (8.95 KB) Pierre Chifflier, 07/10/2008 09:31 AM

History

#1 Updated by over 15 years ago

Hi,

Thanks for the effort. You should not do an "exit 0" without any message at all. It took me sometime to discover what the hell was going on.

One more time, thanks for posting the script.

#2 Updated by Yoann VANDOORSELAERE about 15 years ago

  • Project changed from PRELUDE SIEM to Prelude Correlator
  • Category deleted (11)

#3 Updated by Antoine LUONG about 8 years ago

  • Description updated (diff)
  • Status changed from New to Resolved

Also available in: Atom PDF