Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: PJE, Canna and Wnn...



ayako kato writes:
 > Domenico Carlucci <mimmo@example.com> wrote: 
 > > > >2) When I boot, I see that the Canna and Wnn servers start,
 > > > >   but later another Canna server starts and it gives me an
 > > > >   error, suggesting me to delete the file /tmp/.iroha/IROHA
 > > > >   How can I check that the Canna server is really running?
 > > > You can check by typing
 > > >         ps -ax | grep cannaserver
 > > 
 > > But, do you have any idea why the second canna server starts 
 > > at the booting?
 > 
 > it doesn't shut itself down when you reboot your machine. 
 > I used to deal with this problem by adding an entry 
 > like "/etc/rc.d/rc.canna stop" 
 > in my /etc/rc.d/rc.6 file. It should stop the old canna server 
 > when your machine goes into runlevel 6, and let the new 
 > canna server run at the boot time without a complaint. 
Or you could just add the following in your rc.?? 
(where the server ist started)

if [ -x /usr/spool/canna/lock/.CANNALOCK ]; then
  rm /usr/spool/canna/lock/.CANNALOCK
fi

Since the new server just looks if there is a lock file, you can remove the 
lock file at boot time before you start the server. This also helps, when
there was an incomplete shutdown, e.g. someone pulled the plug etc..
The name of the lock file might be different from the one above

Marcus

-- 
-----------------------------------------------
Dr. Marcus Metzler
Department of Physics
Toho University
Miyama 2-2-1, Funabashi, Chiba 274
Japan

e-mail : mocm@example.com
-----------------------------------------------
---------------------------------------------------------------
Next TLUG Meeting: 11 April Sat, Tokyo Station Yaesu gate 12:30
Featuring Tague Griffith of Netscape i18n talking on source code
---------------------------------------------------------------
a word from the sponsor:
TWICS - Japan's First Public-Access Internet System
www.twics.com  info@example.com  Tel:03-3351-5977  Fax:03-3353-6096



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links