With respect to this excellent post:
https://stackoverflow.com/questions/958249/whats-the-difference-between-nohup-and-a-daemon
I would like to ask the following:
After launching an application from my terminal, the application keeps running either in the background or the foreground and the only thing I can do to interact with it is by sending it signals from my terminal (given that stdin is still in place).
However, after a daemon process is launched, I realized that it can be controlled with extra means (apart from signals) like querying it with flags like below (arch-way):
# /etc/rc.d/daemon-name {start|stop|restart|status|...}
Could someone please explain to me if that feature is built-into the general "daemon framework" and applies to every daemon process as a special feature or is it just a provision that processes designed to run as a daemon have to handle internally?
And to add more to the matter, how on earth are we able to "control" daemons from the terminal using their name (i.e. sambad stop) while applications always have to be referred using their name (i.e. kill -9 12345)?
Thank you in advance!