Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Init Script....anybody?



******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******

Quoting 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:

The rpm creates a /usr/local/bin/minivend script that looks something
like:

#!/bin/sh

RUNSTRING="/usr/local/minivend/bin/minivend -q \\
	-configfile $ETCBASE/minivend.cfg \\
	-pidfile $RUNBASE/minivend/minivend.pid \\
	-logfile $LOGBASE/minivend/error.log \\
	ErrorFile=$LOGBASE/minivend/error.log \\
	PIDfile=$RUNBASE/minivend/minivend.pid \\
	-confdir $RUNBASE/minivend \\
	SocketFile=$RUNBASE/minivend/socket"

USER=\`whoami\`
if test \$USER = "root"
then 
	exec su minivend -c "\$RUNSTRING \$*"
else
	exec \$RUNSTRING \$*
fi
###### END 

That is what is called by the init.d script.
The various variables are created at RPM build time.

-- 
Internet Robotics, 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <mikeh@minivend.com>

Friends don't let friends use Outlook. -- Bob Blaylock
-
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


Search for: Match: Format: Sort by: