Matomo Analytics

Documentation

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...

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:

Dennis Smink

Written by Dennis Smink

Dennis brings over 13 years of hands-on experience in server management, specializing in optimizing web services for scalability and security.

Ready to dive in?
Start your free trial today.

Create an account and enjoy your 5-day free trial — no credit card required.

Start your free trial