[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] 2 weeks up en then it suddenly dies.....
> Hi all! I have been implementing 3.14 in a demo winestore. It
>works great but once in a (long) while the minivend server is
>unavailable. Then I telnet the machine to restart it. Is that something I
>should have to live with? Or is there a solution? (It is fed by an SQL
>database, could this have caused the problem?) Thanks in advance. Fred.
Fred -
I found this in the mailist archive:
problem: when trying to access MiniVend occassionally would receive:
"We're sorry, the MiniVend server is unavailable..."
when running /mvend/bin/restart I received the message:
"Apparently no MiniVend daemons were up -- no PID files."
solution: according to Web2010 Tech Support
>...we do periodically shutdown the server to clear any errant processes.
>This procedure >is most likely what is shutting down MiniVend.
>A trick we use in this situation is to create a simple script to start the
>program:
>#!/bin/bash
>var=`ps -ax | grep "user/mvend" | grep -v -c grep`
>if [ 0 -eq $var ]
>then
>/mnt/web/guide/user/mvend/bin/restart &
>fi
>Then create a crontab entry to check your program every 10 minutes:
>crontab -e
>Then add the line
>5, 15, 25, 35, 45, 55 * * * * /mnt/web/guide/...scriptname >> /dev/null 2>$1
Hope that helps any of you who have had similar problems.
- Jeff -
-
PRINTEX Marking Technologies
12113 Kirkham Rd.
Poway, CA 92064 U.S.A.
(858) 513-2418
(800) 982-1928
(858) 513-2419 fax
edlafrance@printexusa.com
http://www.printexusa.com