LoginSignup
0
0

More than 3 years have passed since last update.

コマンド daemontools => systemd

Last updated at Posted at 2019-07-08

daemontools を systemd に移行した際に叩くコマンドが変わるので、どう変わるか書きます。
CentOS6系からCentOS7系に移行する際などの誰かの助けになれば嬉しいです。

ログをみる

daemontools

tail -f /service/hoge/log/main/current | tai64nlocal

systemd

sudo journalctl -u hoge -f

シグナルを送る

daemontools

sudo svc -h /service/hoge
sudo svc -t /service/hoge

systemd

以下の SIGHUP などは HUP や数字でもOK

sudo systemctl kill -s SIGHUP hoge
sudo systemctl kill -s SIGTERM hoge

サービスの起動・再起動

daemontools

sudo svc -u /service/hoge
sudo svc -d /service/hoge

systemd

sudo systemctl start hoge
sudo systemctl stop hoge

サービスの設定を変える

systemd

sudo vi /etc/systemd/system/hoge.service
(編集)
sudo systemctl daemon-reload
0
0
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
0
0