0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

特定のサービスを再起動し、起動に失敗したときにログを表示させる

Last updated at Posted at 2023-10-22
コマンド
再起動 systemctl restart docker.service
ステータスの表示 status docker.service
ジャーナルログの表示 journalctl -xeu docker.service

root権限でつなげる。

# systemctl restart docker.service || ( systemctl status docker.service | cat ; journalctl -xeu docker.service | cat )

sudo化してサービス名を変数化する

$ S=docker.service; \
sudo systemctl restart isuports.service ; \
(sleep 1 ; sudo systemctl status $S | cat ; sudo journalctl -xeu $S | cat )
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?