LoginSignup
1
1

More than 5 years have passed since last update.

Systemdでjubatus Classifier を起動・停止するカスタムサービスを書いた

Last updated at Posted at 2015-07-20

オンライン機械学習のjubatusで、Classifierのサーバをsystemdで起動・停止するために、カスタムサービスを書いた。

/usr/lib/systemd/system/jubatus.service を以下の内容で作成

[Unit]
Description=Jubatus Classifier server daemon
After=network.target

[Service]
ExecStart=/usr/bin/jubaclassifier --configpath /path/to/jubatus_conf.json 

[Install]
WantedBy=multi-user.target

なんてことはない、たったこれだけでOK!

起動

# systemctl start jubatus

停止

# systemctl stop jubatus

自動起動

# systemctl enable jubatus
1
1
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
1
1