diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2010-05-13 00:06:03 +0200 |
---|---|---|
committer | Heinz Wiesinger <pprkut@slackbuilds.org> | 2010-05-13 00:06:03 +0200 |
commit | ccd0f5d5ce99278323532d87650805f472e1a235 (patch) | |
tree | 1a711ac48d9e3c6db968312a48a945a2b0e69356 /business/tinyerp-server/rc.tinyerp-server | |
parent | 847748bb59cd1b1de704b340661ebf2a3d23f518 (diff) |
business/tinyerp-server: Removed from 13.0 repository
Diffstat (limited to 'business/tinyerp-server/rc.tinyerp-server')
-rw-r--r-- | business/tinyerp-server/rc.tinyerp-server | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/business/tinyerp-server/rc.tinyerp-server b/business/tinyerp-server/rc.tinyerp-server deleted file mode 100644 index a5314c0f9071a..0000000000000 --- a/business/tinyerp-server/rc.tinyerp-server +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# Start/stop/restart tinyerp-server. -# $Id: rc.tinyerp-server,v 1.0 2008/06/02 -# Author: Heinz Wiesinger <hmwiesinger@gmx.at> -# --------------------------------------------------------------------------- - -PIDFILE=/var/spool/tinyerp/tinyerp-server.pid -LOCKFILE=/var/lock/subsys/tinyerp-server -LOGFILE=/var/log/tinyerp/tinyerp-server.log - -# Start tinyerp: -tinyerp_start() { - if [ -x /usr/bin/tinyerp-server ]; then - echo "Starting tinyerp server: /usr/bin/tinyerp-server " - if [ -e "$LOCKFILE" ]; then - echo "tinyerp server already running!" - echo "Please remove $LOCKFILE" - else - /usr/bin/tinyerp-server --pidfile=$PIDFILE --logfile=$LOGFILE \ - -c /etc/tinyerp/tinyerp-server.conf & - touch $LOCKFILE - fi - fi -} - -# Stop tinyerp: -tinyerp_stop() { - echo "Stopping tinyerp-server" - kill -TERM $(cat $PIDFILE) > /dev/null 2>&1 - rm -f $LOCKFILE -} - -# Restart tinyerp: -tinyerp_restart() { - tinyerp_stop - sleep 1 - tinyerp_start -} - -case "$1" in -'start') - tinyerp_start - ;; -'stop') - tinyerp_stop - ;; -'restart') - tinyerp_restart - ;; -*) - echo "usage $0 start|stop|restart" -esac |