I made an script to run Lenya 2, and to stop it, I kill the process. It's a
simple solution that works fine.
A code example:
************************************************
pid=`ps -ef | grep Djava | grep -v grep | cut -c 10-15`
if [ $pid ]; then
echo "Stoping Lenya ...."
kill -9 $pid > /dev/null 2>&1
echo "Lenya Stoped!"
************************************************
Regards.
Martin.-
Petteri Sulonen-2 wrote:
>
> Hi, folks --
>
> Is there an init script available somewhere to run Lenya 2
> (standalone) as a Unix daemon? I found one for Lenya 1.2.5, but not
> 2.0.3, but it appears that ./lenya.sh for 2.0.3 doesn't accept 'stop'
> as a parameter, so it's not easily portable.
>
> If not, what's the recommended way of accomplishing this?
>
> TIA,
>
> /Petteri
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://old.nabble.com/Running-Lenya-2-as-daemon-tp27664915p27665185.html
Sent from the Lenya - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]