please tell me how can i check ifmy daemon process is workin or not...and also how do i close the process?

if ! ps -C <yourprocess> >  /dev/null 
then
    #do stuff if the process is not running
else
    #do some other stuff

you can close a process by using the kill or killall commands

oops, I forgot the fi at the end, sorry.

thanks for the help:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.