trying to run 2 bokeh apps on system reboot thru crontab, but failed to do so.
on crontab -e,
@reboot PATH/reboot_script1.sh
@reboot PATH/reboot_script2.sh
on reboot_script1.sh:
source /home/vcs_admin/anaconda3/etc/profile.d/conda.sh
conda activate base
cd PATH/bokeh project
bokeh serve project1 --address IP --port PORT --allow-websocket-origin URL:PORT --log-file file_log1.txt
on reboot_script2.sh:
source /home/vcs_admin/anaconda3/etc/profile.d/conda.sh
conda activate base
cd PATH/bokeh project
bokeh serve project2 --address IP --port PORT2 --allow-websocket-origin URL:PORT2 --log-file file_log2.txt
on above setup, it always runs the first one, i.e. project1, not project2. when interchange the position, then it runs project2, but not project1.
refer to some posts, the implementation can be done thru systemctl, but i yet to try. just wonder cannot do it thru crontab?
Thanks