###概要
Hitchというプロキシアプリケーションをデーモン化して常駐、自動起動させたいと考えております。
下記の流れでサービス登録を行いました。
(1) vim /lib/systemd/system/hitch.service
[Unit] Description=Hitch TLS unwrapping daemon After=network.target Documentation=https://github.com/varnish/hitch/tree/master/docs man:hitch(8) [Service] ExecStart=/opt/hitch/sbin/hitch --user _hitch --group _hitch --config /etc/hitch/hitch.conf --quiet ExecReload=/bin/kill -HUP $MAINPID Type=forking Restart=on-failure PrivateDevices=true PrivateTmp=true ProtectHome=true ProtectSystem=full [Install] WantedBy=multi-user.target
(2)sudo systemctl daemon-reload
(3)sudo service hitch start
###問題点
上記の手順でサービス登録を行ったのですが、下記のログのようにスグ終了されてしまいます。
{core} Received signal 15, shutting down.
###試したこと
実行コマンドをsudo付きで実行した所、問題なく動作します。
sudo /opt/hitch/sbin/hitch --user _hitch --group _hitch --config /etc/hitch/hitch.conf --quiet
###質問
・怪しい点や記述ミスなどがあればご指摘頂けないでしょうか?
・service hitch startしてすぐ、なぜSignal 15が呼ばれるのかわかりません。journalctlにはアプリケーション自身が呼んだ事になっています。常駐化されない設定になっているのでしょうか?
よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/01/04 09:37
2019/01/04 09:46
2019/01/04 09:54 編集