2023-12-05 16:21:08 +08:00
|
|
|
[program:sensor_to_server]
|
2023-12-08 14:33:44 +08:00
|
|
|
directory=/home/pi/lot_manager
|
2023-12-08 14:16:59 +08:00
|
|
|
command=/usr/bin/python sensor_to_server.py
|
2023-12-05 16:21:08 +08:00
|
|
|
user=pi
|
|
|
|
;是否随开机自启 或者reload自启动
|
2024-01-06 16:51:42 +08:00
|
|
|
autostart=true
|
2023-12-05 16:21:08 +08:00
|
|
|
;失败重启
|
2023-12-18 10:04:44 +08:00
|
|
|
autorestart=true
|
2023-12-05 16:21:08 +08:00
|
|
|
;重启次数
|
|
|
|
restart_times=3
|
|
|
|
redirect_stderr=true
|
|
|
|
stopsignal=TERM
|
|
|
|
stopasgroup=True
|