Controlling 'services'

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

 



Hi,

I've set up a little java app which sits on top of gammu's sms daemon to
give me a nice email client style text messaging system on my fedora
box.
Im using 'rfcomm connect' to make a bluetooth connection.
Now, when my phone goes out of range, obviously this connection
terminates (and rfcomm connect returns).
What I'd really like to do is detect this, and go in to 'retry mode'
(try and make a connection every x seconds, and bring gammu back up /
notify my java app when a connection is re-established). 
Im currently thinking of a simple shell script which notes the rfcomm
pid, goes in to reconnect when the process goes - and performs the
relevant actions when the connection is established again.
So what's this got to do with linux anyway? Well, it seems to me that
this 'service monitoring' technique with performing actions when
services are available sounds similar to my fedora 'services' (samba,
ftp, whatever). 
So should I really be doing this as a linux service? If so, what files
do I need to start playing with?

Many thanks,

Dave

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux