Slips
Stratosphere Linux IPS
Loading...
Searching...
No Matches
StratosphereLinuxIPS.daemon.Daemon Class Reference

Public Member Functions

 __init__ (self, slips)
 
 print (self, text)
 
 create_std_streams (self)
 
 prepare_std_streams (self, output_dir)
 
 read_configuration (self)
 
 prepare_output_dir (self)
 
 delete_pidfile (self)
 
 daemonize (self)
 
 start (self)
 
 get_last_opened_daemon_info (self)
 
 killdaemon (self)
 
 stop (self)
 

Public Attributes

 slips
 
 pidfile_dir
 
 pidfile
 
 pid
 
 logsfile
 
 stderr
 
 stdout
 
 stdin
 

Static Public Attributes

str description = 'This module runs when slips is in daemonized mode'
 

Constructor & Destructor Documentation

◆ __init__()

StratosphereLinuxIPS.daemon.Daemon.__init__ (   self,
  slips 
)

Member Function Documentation

◆ create_std_streams()

StratosphereLinuxIPS.daemon.Daemon.create_std_streams (   self)
Create standard steam files and dirs and clear them

◆ daemonize()

StratosphereLinuxIPS.daemon.Daemon.daemonize (   self)
Does the Unix double-fork to create a daemon

◆ delete_pidfile()

StratosphereLinuxIPS.daemon.Daemon.delete_pidfile (   self)
Deletes the pidfile to mark the daemon as closed

◆ get_last_opened_daemon_info()

StratosphereLinuxIPS.daemon.Daemon.get_last_opened_daemon_info (   self)
get information about the last opened slips daemon from running_slips_info.txt

◆ killdaemon()

StratosphereLinuxIPS.daemon.Daemon.killdaemon (   self)
 Kill the damon process only (aka slips.py) 

◆ prepare_output_dir()

StratosphereLinuxIPS.daemon.Daemon.prepare_output_dir (   self)

◆ prepare_std_streams()

StratosphereLinuxIPS.daemon.Daemon.prepare_std_streams (   self,
  output_dir 
)
prepare the path of stderr, stdout, logsfile

◆ print()

StratosphereLinuxIPS.daemon.Daemon.print (   self,
  text 
)
Prints output to logsfile specified in slips.conf

◆ read_configuration()

StratosphereLinuxIPS.daemon.Daemon.read_configuration (   self)

◆ start()

StratosphereLinuxIPS.daemon.Daemon.start (   self)
Main function, Starts the daemon and starts slips normally.

◆ stop()

StratosphereLinuxIPS.daemon.Daemon.stop (   self)
Stop the daemon

Member Data Documentation

◆ description

str StratosphereLinuxIPS.daemon.Daemon.description = 'This module runs when slips is in daemonized mode'
static

◆ logsfile

StratosphereLinuxIPS.daemon.Daemon.logsfile

◆ pid

StratosphereLinuxIPS.daemon.Daemon.pid

◆ pidfile

StratosphereLinuxIPS.daemon.Daemon.pidfile

◆ pidfile_dir

StratosphereLinuxIPS.daemon.Daemon.pidfile_dir

◆ slips

StratosphereLinuxIPS.daemon.Daemon.slips

◆ stderr

StratosphereLinuxIPS.daemon.Daemon.stderr

◆ stdin

StratosphereLinuxIPS.daemon.Daemon.stdin

◆ stdout

StratosphereLinuxIPS.daemon.Daemon.stdout

The documentation for this class was generated from the following file: