[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Init Script....anybody?
****** message to minivend-users from "Michael Schwartz" <michael@panamacom.com> ******
hi
i took the minivend rc.d/init.d script from the rpm and tried using it with
the regular minivend4.02
i only changed the PATH, but didnt worked...i guess the /var/lock and
/var/run files have to be changed...but i dont really know how
exactly....can someone please suggest something?
The minivend rc.d script is below:
#!/bin/sh
#
# Startup script for Minivend
#
# chkconfig: 345 96 4
# description: Minivend is a database access and HTML templating system #
focused on ecommerce
# processname: minivend
# pidfile: /var/run/minivend/minivend.pid
# config: /etc/minivend.cfg
# config: /var/lib/minivend/*/catalog.cfg
# Source function library.
. /etc/rc.d/init.d/functions
# Handle /usr/local
PATH=$PATH:/home/mvrun/mvend/bin
# See how we were called.
case "$1" in
start)
echo -n "Starting minivend: "
daemon minivend
echo
touch /var/lock/subsys/minivend
;;
stop)
echo -n "Shutting down minivend: "
killproc minivend
echo
rm -f /var/lock/subsys/minivend
rm -f /var/run/minivend/minivend.pid
;;
status)
status minivend
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
esac
exit 0
--------
Michael Schwartz
www.panamacom.com
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list