database-global flag : writing a demon
Hi there!
I need a solution for a database-global flag. I'm writing a demon, which runs in his own session and listenes to a pipe. He responds to the messages by writing into another pipe etc. My problem is, that at the moment it's possible to start this demon in 2 different sessions, because I can't check, if the demon is running or not.
Now i want to set a flag, when the demon starts and reset the flag, when the demon isn't running. But my question is, how can i manage that this flag is database global, so that every session has access to the same flag.
Please help!
greetinx Ingo