2

Below command is to start socket service.

nohup php -q server.php > my.log 2>&1 & echo $! > save_pid.txt

But the problem is when the OS shutdown and restart service socket will be stopped.

In this case, i want socket service auto start when the OS startup.

How should i do?

Udom
  • 329
  • 2
  • 4
  • 18

0 Answers0