4
# Provides: etiny-server
5
# Required-Start: $syslog
6
# Required-Stop: $syslog
7
# Should-Start: $network
8
# Should-Stop: $network
9
# Default-Start: 2 3 4 5
11
# Short-Description: Enterprise Resource Management software
12
# Description: Tiny ERP is a complete ERP and CRM software.
15
PATH=/sbin:/bin:/usr/sbin:/usr/bin
16
DAEMON=/opt/tinyerp/etiny-server
20
test -x $DAEMON || exit 0
22
# Include tinyerp-server defaults
23
#. /opt/tinyerp/eTiny/etc/default/etiny-server
29
echo -n "Starting $DESC: "
31
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
32
--chuid $USER --background --make-pidfile \
33
--exec $DAEMON -- $DAEMON_OPTS
39
echo -n "Stopping $DESC: "
41
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
48
echo -n "Restarting $DESC: "
50
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
55
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
56
--chuid $USER --background --make-pidfile \
57
--exec $DAEMON -- $DAEMON_OPTS
64
echo "Usage: $N {start|stop|restart|force-reload}" >&2