Added (Linux) file monitor configuration to Fabric script.

Also improved `create_user` to allow overwriting some settings.
This commit is contained in:
Lance Edgar 2013-06-02 10:44:27 -07:00
parent a732804911
commit 331f775512
4 changed files with 247 additions and 2 deletions

4
data/etc/default/rattail Normal file
View file

@ -0,0 +1,4 @@
# The following settings affect all Rattail daemons.
USER=rattail
GROUP=rattail

View file

@ -0,0 +1,19 @@
#! /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