Files @ 177478f7d054
Branch filter:

Location: rattail-project/rattail/data/etc/init.d/rattail-filemon_tmpl

lance
Database config/init overhaul.

This contains some not-very-atomic changes:

* Get rid of `get_session_class()` function and return to global `Session`
class approach.
* Primary database `Session` is now configured as part of command
initialization, by default.
* Make `config` object available to subcommands, and `Daemon` instances
(the beginning of the end for `edbob.config`!).
* Add `--stdout` and `--stderr` arguments to primary `Command`. These are
in turn made available to subcommands.
* Overhauled some subcommand logic per new patterns.
* Get rid of a few other random references to `edbob`.
* Added and improved several tests.
* Added ability to run tests using arbitrary database engine.
#! /bin/sh
### BEGIN INIT INFO
# Provides:          %(name)s
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: %(desc)s
# Description:       Manages the %(desc)s daemon.
### END INIT INFO

DESC="%(desc)s"
NAME=%(name)s

PYTHON=%(envdir)s/bin/python
RATTAIL=%(envdir)s/bin/rattail
RATTAIL_ARGS="--config=%(envdir)s/app/filemon.ini"

. /var/lib/rattail/init.d/filemon