LoginSignup
4
3

More than 5 years have passed since last update.

foreverでシェルをデーモン化

Posted at

linuxサーバでhubotをデーモン化して動かしたかったのですが、
環境変数にいろいろ設定したかったので、起動シェルスクリプトを作成しました。

なので、foreverでシェルスクリプトをデーモン化しました。
簡単にできました。

ここを参考にしました

インストール
# forever インストール
$ npm install -g forever

# シェル起動
$ forever -c sh start daemon_runner.sh
4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3