diff options
Diffstat (limited to 'finance/trytond/files/trytond.in')
-rw-r--r-- | finance/trytond/files/trytond.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/finance/trytond/files/trytond.in b/finance/trytond/files/trytond.in index 8a4b091c50c2..2947faa50f04 100644 --- a/finance/trytond/files/trytond.in +++ b/finance/trytond/files/trytond.in @@ -1,6 +1,6 @@ #!/bin/sh -# $FreeBSD$ +# $FreeBSD: ports/finance/trytond/files/trytond.in,v 1.1 2012/08/18 07:18:24 wen Exp $ # # PROVIDE: trytond # REQUIRE: postgresql LOGIN @@ -25,6 +25,7 @@ trytond_user="${trytond_user:-"trytond"}" trytond_logdir="${trytond_logdir:-"$(dirname `grep logfile %%PREFIX%%/etc/trytond.conf | awk -F "=" ' { print $2 } ' `)"}" command=%%PREFIX%%/bin/trytond +command_interpreter=%%PYTHON%% command_args="--config=${trytond_config} >/dev/null 2>&1 &" pidfile="${trytond_pidfile:-"$(grep pidfile %%PREFIX%%/etc/trytond.conf | awk -F "=" ' { print $2 } ' |sed 's/[ ]//g' )"}" @@ -34,8 +35,7 @@ start_precmd="${name}_prestart" trytond_prestart () { - install -d -o ${trytond_user} $(dirname "${trytond_pidfile}") - install -d -o ${trytond_user} ${trytond_logdir} + install -d -o ${trytond_user} -g ${trytond_user} $(dirname "${pidfile}") "${trytond_logdir}" } run_rc_command "$1" |