This flag causes the program to not automatically daemonize when invoked.
Suggested usage: Run from a monitor, such as init.
# History:
# (1) Ported bb-local.sh script to perl. (Ed Hill Feb 26, 1997)
#
-# $Id: spong-client.pl,v 1.17 2000/10/16 15:34:32 sljohnson Exp $
+# $Id: spong-client.pl,v 1.18 2001/06/19 21:24:32 supermathie Exp $
use lib '@@LIBDIR@@';
$debug = $restart = $kill = $nosleep = 0;
if ( ! GetOptions("debug:i" => \$debuglevel, "restart" => \$restart,
- "kill" => \$kill, "nosleep|refresh" => \$nosleep ) ) {
+ "kill" => \$kill, "nosleep|refresh" => \$nosleep,
+ "nodaemonize" => \$nodaemonize ) ) {
&usage();
exit 1;
}
&load_config_files(); # Loads the user specified configuration information
&init_logging(); # Initialize logging contexts
Spong::Daemon::Daemonize # Daemonize if not signalling or debugging
- unless ($restart || $kill || $nosleep || $debug);
+ unless ($restart || $kill || $nosleep || $debug || $nodaemonize);
&handle_signals(); # Set up handlers, and signal the current server if asked
# Find our SPONGSLEEP value
print qq
(Usage:
- $0 [--debug n] [--nosleep|--refresh] [config_file]
+ $0 [--nodaemonize] [--debug n] [--nosleep|--refresh] [config_file]
$0 --kill | --restart
--debug n
Run in the foreround and print debugging output
+ --nodaemonize
+ Run without becoming a daemon
--nosleep
--refresh
Run one cycle of checks in the foreground and exit
# (2) Converted checks to new plugin mechanism (Stephen Johnson May 28, 1999)
# Added user-configurable escalation mechanism
#
-# $Id: spong-network.pl,v 1.37 2001/05/25 14:42:59 sljohnson Exp $
+# $Id: spong-network.pl,v 1.38 2001/06/19 21:24:32 supermathie Exp $
use Carp;
use lib "@@LIBDIR@@";
$debug = $restart = $kill = 0;
if ( ! GetOptions("debug:i" => \$debuglevel, "restart" => \$restart,
- "kill" => \$kill, "nosleep|refresh" => \$nosleep ) ) {
+ "kill" => \$kill, "nosleep|refresh" => \$nosleep,
+ "nodaemonize" => \$nodaemonize) ) {
&usage();
exit 1;
}
&load_config_files(); # Loads the user specified configuration information
&init_logging(); # Initialize logging contexts
Spong::Daemon::Daemonize() # Daemonize if not signalling or a one-shot
- unless ($nosleep || $restart || $kill || $debug );
+ unless ($nosleep || $restart || $kill || $debug || $nodaemonize );
&handle_signals(); # Set up handlers, and signal the current server if asked
# Find our SPONGSLEEP value
print qq
(Usage:
- $0 [--debug n] [--nosleep|--refresh] [config_file]
+ $0 [--nodaemonize] [--debug n] [--nosleep|--refresh] [config_file]
$0 --kill | --restart
--debug n
Run in the foreround and print debugging output
+ --nodaemonize
+ Run without becoming a daemon
--nosleep
--refresh
Run one cycle of checks in the foreground and exit
# There are one or more update processes that listen for status updates
# from client programs.
-# $Id: spong-server.pl,v 1.41 2001/04/17 02:58:12 sljohnson Exp $
+# $Id: spong-server.pl,v 1.42 2001/06/19 21:24:32 supermathie Exp $
use lib "@@LIBDIR@@";
$debug = $restart = $kill = 0;
if (! GetOptions("debug:i" => \$debuglevel, "restart" => \$restart,
- "kill" => \$kill, "test" => \$test ) ) {
+ "kill" => \$kill, "test" => \$test,
+ "nodaemonize" => \$nodaemonize) ) {
&usage();
exit 1;
}
&load_config_files(); # Loads the user specified configuration information
&init_logging(); # Initialize logging contexts
-Spong::Daemon::Daemonize() unless ($debug || $restart || $kill) ;
+Spong::Daemon::Daemonize() unless ($debug || $restart || $kill || $nodaemonize);
&handle_signals(); # Set up handlers, and signal the current server if asked
# Find our SPONGSLEEP value
print qq
(Usage:
- $0 [--debug [n]] [--restart|--kill] [config_file]
+ $0 [--nodaemonize] [--debug [n]] [--restart|--kill] [config_file]
--debug
Run in the foreground and print debugging output.
+ --nodaemonize
+ Run without becoming a daemon
--restart
Signal a running spong-server to restart.
--kill