|
From: | Kaushik |
Subject: | Re: [Health-dev] GNU Health at system start |
Date: | Wed, 07 Aug 2013 14:52:51 +0530 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 |
HI Luis, Emilien,
The system start daemon script below at [0] does work in ubuntu. I just had to change the path variables. HOMEDIR="/home/gnuhealth" DAEMON="${HOMEDIR}/gnuhealth/tryton/server/trytond-2.8.1/bin/trytond" test -x "${DAEMON}" || exit 0 NAME="gnuhealth-server" DESC="GNU Health Server (Tryton Application Platform)" DAEMONUSER="gnuhealth" PIDDIR="/var/run/${NAME}" PIDFILE="${PIDDIR}/${NAME}.pid" LOGFILE="${HOMEDIR}/${NAME}.log" DAEMON_OPTS="--logfile=${LOGFILE}" The rest were unchanged. I put the script in /etc/init.d and made two softlinks to it (/etc/rc2.d/S99gnuhealth and /etc/rc2.d/K99gnuhealth). This does bring up the tryton server at startup. I am on Ubuntu 12.04.2 LTS. Kaushik On Monday 05 August 2013 07:09 PM, Emilien Klein wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |