Learn how to configure and manage background processes on your Forge server.
php artisan websockets:serve
.
User: The operating system user that should be used to invoke the command. By default, the forge
user will be used.
Directory: The directory in which to run your command from. This can be left empty.
Processes: This option determines how many instances of the process should be kept running.
Start Seconds: The total number of seconds the program must stay running in order to consider the start successful.
Stop Seconds: The number of seconds Supervisor will allow for the daemon to gracefully stop before forced termination.
Stop Signal: The signal used to kill the program when a stop is requested.
sudo -S supervisorctl restart daemon-{id}:*
, where {id}
is the daemon’s ID. For example, if the daemon’s ID is 65654
you may restart it by running sudo -S supervisorctl restart daemon-65654:*
.
You may also run this command within your application’s deployment script to restart the daemon during a deployment.
/home/forge/.forge/
directory. Log files are named daemon-*.log
.
.forge
directory within the /home/{username}
directory based on the user that the process belongs to in order to locate the daemon’s log files.server:create-daemons
and server:delete-daemons
permissions.