Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

2.4.1

Do a small fix for Python 3 with the pidfile chmod

2.4.0

Version bump, update changelog infos

2.2.3

Minor setup.py fix for README.rst

2.2.2

Missing README.rst in MANIFEST.in

2.2.1

Typo in setup.py version number

2.2.0

README & Version History Updates
- Rename README.md to README.rst

2.1.1

Bug fix with finding stale pids

2.1.0

Update version and version history

2.0.5

Ignore the deprecation warning and fix the exception log path building

2.0.4

2.6 doesnt have subprocess.check_output, revert to os.popen3

2.0.2

Bump rev and update history documents

2.0.1

Remove the Windows classifier

1.7.6

Use yaml.safe_load instead of load

1.7.5

Allow STOPPED when waiting to stop

1.7.3

Set the working_directory to the cwd in foreground

1.7.1

Remove debug only handlers from loggers when removing the handler

1.6.3

Updates to how logging configuration
- Added new default logging configuration, all configuration specified in configuration file will be merged with default configuration.
- Selectively import logutils by platform version
- Update Controller.logging_config to get config from module level logging config method
- Add new Logging.set_configuration method to allow for configuration updates
- Update logging config through global LOGGING_OBJ upon SIGHUP
- Don't detach the process if it is running in the foreground

1.6.2

Fix an error created in Python 2.6 and bump version

1.5.3

Handle exceptions and errors better, tag 1.5.3

1.5.1

Add logutils to the requirements

1.5.0

1.5.0 Update
- Remove redundant code for non-forked starting
- Conditional includes for Python 2.6 support
- Change use of DaemonContext to behave better
- Write a timestamped traceback to /tmp if an exception occurs killing off app using clihelper
- Rename clihelper._get_logging_config to  clihelper.get_logging_config
- Fix a bug where a pidfile is left behind when stopping after running interactively
- Rename logger to LOGGER

1.4.8

Change the wakeup message to DEBUG

1.4.7

Write the pidfile after the process has forked

1.4.6

Write the pid out to the pidfile

1.4.5

Minor cleanup around the pidfile and configuration parsing when start…
…ing as a daemon

1.4.4

Allow for pid specific pidfiles

1.4.2

Recursion is bad.
Because signal.pause was called at the end of Controller._wake, the signal would fire kicking off a cycle of _wake, _sleep recursively. To fix this, I removed the signal.pause call from the end of _wake and moved a loop into run.

1.4.1

Dont load from clihelper.get_configuration() for every Controller._ge…
…t_application_config()

1.4.0

Change the main looping to use signals
- Use signal.setitimer and signal.pause for the sleep intervals
- Remove the _loop method
- Change signal handling callbacks, removing arguments
- Clean up internal runtime state variable use
- Lower sleep interval when shutting down

1.3.1

Fix a small issue with trying to change the runtime state when waking up

1.3.0

Fix state management related issues
- Add signal handling for apps running in the foreground
- Validate state settings prior to setting next state
- Fix a shutdown bug in _loop
- Move _shutdown_complete to be called by _shutdown()
- Add a is_sleeping property method

1.2.1

Make setup_logging public

1.2.0

Add the ability to add new configuration keys to validate the presenc…
…e of

1.1.0

Update to use logutils instead of logging-config.
- Bump version to 1.1.0
- Fix bug in setup.py (tests_require)
- Update example.py to get own logger
- Update README.md to reflect logutils and dictConfig with additional notes on logging and the debug_only node.
- Update unit tests to reflect the logging-config -> logutils change

1.0.1

Remove the non-needed dependency and bump the minor rev
Something went wrong with that request. Please try again.