“Bufpay.com Personal Instant Payment Platform”

Outdated scripts need to be running on the container while it’s running, and there are various ways to run the container while it’s running, such as changing the /etc/rc.local script, or moving the container under /etc/init.d or running it through the container.

Since there are other scripts that need crontab, in order to facilitate the management of one place, crontab can be used to start the system, and only the following command is required:

@reboot nohup python /project_path/cron/expire.py >> /project_path/logs/expire.log 2>&1 &
Copy the code

Nohup is used to make the running program ignore the SIGHUP command (because after the parent program exits, all subroutines will receive the SIGHUP command) so that the running program does not exit. The final 2> &1& redirects the stDout to &1 and runs in the background, where the stDout is directed to the file /project_path/logs/ expirely. log so that the error log and print log can be viewed in one place.


Advertisement ✧(≖ plus-one item ≖✿