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:

13 May 2020
330 views