lsynd のスクリプトを常に実行するために、supervisord で実行しようとしています。スーパーバイザー用にこのconfをコーディングしました
[program:autostart_lsyncd]
command=bash -c "lsyncd /home/sync/lsyncd_script.lua"
autostart=true
autorestart=unexpected
numprocs=1
startsecs = 0
stderr_logfile=/var/log/autostart_sync.err.log
stdout_logfile=/var/log/autostart_sync.out.log
スクリプトは起動時に正常に実行されますが、常に終了します
2018-04-09 09:48:49,638 INFO success: autostart_lsyncd entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2018-04-09 09:48:49,639 INFO exited: autostart_lsyncd (exit status 0; expected)
これがlsyndスクリプトを存続させる正しい方法であるかどうかはわかりません。提案?