Daemon is a common term when you use Linux kernel operating systems. It is a background program like services on Windows, which can be turned on and off automatically without affecting the user interface. You can use it to run queues, websocket, laravel-echo-server, ... FlashVPS uses Supervisor to run your command and make sure it's up and running.
You can set up a script daemon through Daemon
the server tab. Steps to configure a script daemon:
Daemon
> SelectDaemon mới
php artisan queue:work
flashvps
will be usedLưu
After the daemon script is successfully created, you will be able to easily perform some operations on the script as follows:
FlashVPS automatically configures your daemon to write to its own log file. Logs can be found in the /home/flashvps/.flashvps/
. The log files are named daemon-*.log
. If the script daemon is run as system user root
, the log file will be saved at /root/.flashvps/
.
! User Isolation.
If you are using FlashVPS's user isolation feature, you should navigate to the directory.flashvps
in/home/{username}
the user-based directory the process belongs to to locate the daemon's log file.