How do I run a daemon with my script?

In order for you to run a script as daemon you can easily create a bash file and run that. Let's take Laravel Echo Server in this example.

Create a new script called socket.sh and enter these contents:

#!/usr/bin/env bash

laravel-echo-server start

Then you can run that script in your daemons tab, just enter the path like: /home/ploi/domain.com/socket.sh:

CleanShot 2020-05-13 at 14.43.56.png 65.45 KB
13 May 2020
39 views