我在 Debian 10 Buster 的 Raspberry Pi 上运行了一个 python3 脚本,我可以在终端窗口中运行,但不能在启动时运行?
我在 /etc/profile 的文件末尾使用以下代码行
nohup python3 statlogger.py -db=stat_logger_db -sn=test
虽然代码行在我手动运行时在终端窗口中工作,但它在启动 pi 时不起作用
我也试过
nohup python3 statlogger.py & -db=stat_logger_db -sn=test
python代码需要在启动时运行,然后在pi开机时连续运行,任何想法