M
M
Multigame2015-03-06 22:43:27
System administration
Multigame, 2015-03-06 22:43:27

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

Is it possible to make this process die after starting the main one?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Armenian Radio, 2015-03-06
@gbg

It is believed that there are init scripts for starting daemons, or, forgive me, Japanese Policeman , systemd.

D
Denis Verbin, 2015-03-06
@rez0n

(Take the start of the daemon into parentheses)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question