2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 563
/ 2 Years ago, mon, november 7, 2022, 9:12:26
I wrote a daemon in C++ which is automatically started on login using a bash script placed in /etc/profile.d/
while running the install
section of my makefile. The problem is that when I log out and log back in, there are now two instances of the daemon running.
What I would have liked is for the first one to stop when I logged out, not keep going. It's only meant to run while somebody is logged in, anyhow. How do I make sure my daemon is not still running after I logout?
More From » programming