openbsd-ports/productivity/tryton/trytond/pkg/trytond.rc
ajacoutot 9921f26133 Import tryton{,d}-2.0.1
Tryton is a three-tiers high-level general purpose application platform
written in Python and uses Postgresql as its main database engine. It is
the core base of an Open Source ERP. It provides modularity, scalability
and security.

"tryton" is the client of the Tryton application platform.
"trytond" is the server of the Tryton application platform.
2011-06-10 11:49:30 +00:00

25 lines
406 B
Bash

#!/bin/sh
#
# $OpenBSD: trytond.rc,v 1.1.1.1 2011/06/10 11:49:31 ajacoutot Exp $
daemon="${TRUEPREFIX}/bin/trytond"
daemon_user="_tryton"
. /etc/rc.d/rc.subr
pexp="${MODPY_BIN} ${daemon}${daemon_flags:+ ${daemon_flags}}"
rc_bg=YES
rc_reload=NO
rc_pre() {
touch /var/log/trytond
chown _tryton:_tryton /var/log/trytond
}
# XXX hangs forever (threads?)
rc_stop() {
pkill -9 -f "^${pexp}"
}
rc_cmd $1