summaryrefslogtreecommitdiff
path: root/business/openerp-server/rc.openerp-server
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2021-04-22 16:27:26 +0200
committerRobby Workman <rworkman@slackbuilds.org>2021-04-22 20:17:41 -0500
commit166c64751bf4a1b5647b8db2e60f01c714b3d4ed (patch)
tree4a6af7e56b6d7f2b0e2266b654ca9f423b8e7470 /business/openerp-server/rc.openerp-server
parentcc5785abba9cfa463b8cc9edfcb96cb9db0241ba (diff)
downloadslackbuilds-166c64751bf4a1b5647b8db2e60f01c714b3d4ed.tar.gz
business/openerp-server: Removed.
Superceded by python/odoo Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'business/openerp-server/rc.openerp-server')
-rw-r--r--business/openerp-server/rc.openerp-server52
1 files changed, 0 insertions, 52 deletions
diff --git a/business/openerp-server/rc.openerp-server b/business/openerp-server/rc.openerp-server
deleted file mode 100644
index 37fa2d5bee..0000000000
--- a/business/openerp-server/rc.openerp-server
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-# Start/stop/restart openerp-server.
-# $Id: rc.openerp-server,v 1.1 2009/03/31
-# Author: Heinz Wiesinger <pprkut@liwjatan.at>
-# ---------------------------------------------------------------------------
-
-PIDFILE=/var/spool/openerp/openerp-server.pid
-LOCKFILE=/var/lock/subsys/openerp-server
-LOGFILE=/var/log/openerp/openerp-server.log
-
-# Start openerp:
-openerp_start() {
- if [ -x /usr/bin/openerp-server ]; then
- echo "Starting openerp server: /usr/bin/openerp-server "
- if [ -e "$LOCKFILE" ]; then
- echo "openerp server already running!"
- echo "Please remove $LOCKFILE"
- else
- /usr/bin/openerp-server --pidfile=$PIDFILE --logfile=$LOGFILE \
- -c /etc/openerp/openerp-server.conf &
- touch $LOCKFILE
- fi
- fi
-}
-
-# Stop openerp:
-openerp_stop() {
- echo "Stopping openerp-server"
- kill -TERM $(cat $PIDFILE) > /dev/null 2>&1
- rm -f $LOCKFILE
-}
-
-# Restart openerp:
-openerp_restart() {
- openerp_stop
- sleep 1
- openerp_start
-}
-
-case "$1" in
-'start')
- openerp_start
- ;;
-'stop')
- openerp_stop
- ;;
-'restart')
- openerp_restart
- ;;
-*)
- echo "usage $0 start|stop|restart"
-esac