work_scripts/strytond_cron

18 lines
351 B
Bash
Executable File

#!/bin/sh
# Author: Oscar Alvarez, 01/07/2016
NAME="strytond_cron"
DESC="Tryton Cron"
NAME_ENV="tryton50"
DAEMON="${HOME}/.virtualenvs/${NAME_ENV}/bin/trytond-cron"
PIDFILE="/var/run/$NAME.pid"
CONFIG="${HOME}/.trytond/trytond.conf"
OPTIONS="-c $CONFIG"
LOGOPTIONS="--logconf ${HOME}/.trytond/trytond_log.conf"
set -e
$DAEMON -v $OPTIONS -d MYDB