Answer the question
In order to leave comments, you need to log in
How to start the daemon from cron?
Good afternoon , I launch the
demon from the crown and everything starts, it lives. But along with the daemon process, the "launcher" process also lives.
In particular, if we start the php daemon, then in addition to the php process, the following hangs
/bin/bash -c cd /srv/deamon/ && php -f deamon.php > /dev/null 2>&1
Answer the question
In order to leave comments, you need to log in
It is believed that there are init scripts for starting daemons, or, forgive me, Japanese Policeman , systemd.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question