スクリプトの何が問題なのかを理解するのに苦労しています。私は Linux の世界に足を踏み入れたばかりなので、非常に些細なことを見落としている可能性があります。PCの起動時にデーモンを実行したいpythonスクリプトがあります。また、クラッシュした場合にリスポーンしたいと考えています。グーグルで数時間見た後、私はあきらめました:)
これが私がこれまでに試したことです:
description "some daemon service."
#start on startup
#stop on shutdown
#respawn
pre-start exec python3 /home/dato0011/PycharmProjects/untitled/main.py start
post-stop exec python3 /home/dato0011/PycharmProjects/untitled/main.py stop
initctl start "svc_name" を実行すると、initctl: Job failed to startエラーが発生します。
ありがとう