Rename TinyERP to OpenERP in scripts.

bzr revid: p_christ@hol.gr-20080923160156-if74p01bs4js0mr6
This commit is contained in:
P. Christeas 2008-09-23 19:01:56 +03:00
parent f345da353a
commit 410247285e
4 changed files with 24 additions and 24 deletions

View File

@ -25,7 +25,7 @@ unix user name):
$ logout
# logout
3. Launch service daemon by "service tinyerp-server start".
3. Launch service daemon by "service openerp-server start".
The first time it is run, the server will initialise the database with all the default values.

View File

@ -1,5 +1,5 @@
[options]
without_demo = False
without_demo = True
upgrade = False
verbose = False
xmlrpc = True

View File

@ -1,38 +1,38 @@
#!/bin/bash
# tinyerp-server This shell script takes care of starting and stopping
# TinyERP server
# openerp-server This shell script takes care of starting and stopping
# OpenERP server
#
# chkconfig: 345 95 05
# description: TinyERP server
# description: OpenERP server
#
# pidfile: /var/run/tinyerp-server.pid
# config: /etc/tinyerp-server.conf
# pidfile: /var/run/openerp-server.pid
# config: /etc/openerp-server.conf
### BEGIN INIT INFO
# Provides: tinyerp-server
# Provides: openerp-server
# Required-Start: postgresql
# Required-Stop: postgresql
# Should-Start: $network harddrake
# Default-Start: 345
# Short-Description: Launches the TinyERP server.
# Description: This startup script launches the TinyERP server.
# Short-Description: Launches the OpenERP server.
# Description: This startup script launches the OpenERP server.
### END INIT INFO
# Source function library.
. /etc/rc.d/init.d/functions
PIDFILE=/var/run/tinyerp/tinyerp-server.pid
LOCKFILE=/var/lock/subsys/tinyerp-server
LOGFILE=/var/log/tinyerp/tinyerp-server.log
PIDFILE=/var/run/tinyerp/openerp-server.pid
LOCKFILE=/var/lock/subsys/openerp-server
LOGFILE=/var/log/tinyerp/openerp-server.log
OPTS="--pidfile=$PIDFILE --logfile=$LOGFILE"
prog="tinyerp-server"
desc="TinyERP Server Daemon"
prog="openerp-server"
desc="OpenERP Server Daemon"
# check if the tinyerp-server conf file is present, then use it
if [ -f /etc/tinyerp-server.conf ]; then
OPTS="$OPTS -c /etc/tinyerp-server.conf"
# check if the openerp-server conf file is present, then use it
if [ -f /etc/openerp-server.conf ]; then
OPTS="$OPTS -c /etc/openerp-server.conf"
fi
# Source function library
@ -44,16 +44,16 @@ else
exit 0
fi
# check the existence of the tinyerp-server script
[ -z "/usr/bin/tinyerp-server" ] && exit 0
# check the existence of the openerp-server script
[ -z "/usr/bin/openerp-server" ] && exit 0
RETVAL=0
start() {
echo -n $"Starting $desc ($prog): "
daemon --user tinyerp --check tinyerp-server \
"/usr/bin/setsid /usr/bin/tinyerp-server \
-c /etc/tinyerp-server.conf \
daemon --user tinyerp --check openerp-server \
"/usr/bin/setsid /usr/bin/openerp-server \
-c /etc/openerp-server.conf \
--pidfile=$PIDFILE \
--logfile=$LOGFILE &"

View File

@ -1,4 +1,4 @@
/var/log/tinyerp/*.log {
/var/log/openerp/*.log {
copytruncate
missingok
notifempty