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.

SSHからCRONの動作確認とリスタートを実行する

Posted at

CRONの動作確認

CRONが正常に動作しているかどうかを確認する。

CRONのサービス状態を確認する

sudo systemctl status cron

CRONのサービスが実行中であるかどうかを確認できます。"Active: active (running)"と表示されるはずです。もし停止している場合は、以下のコマンドで再起動します。

CRONのリスタート

以下のコマンドでCRONを再稼働させることができます。

sudo systemctl restart cron

CRONのログをチェックする

CRONのログは通常、/var/log/syslog や /var/log/cron に記録されています。

tail /var/log/syslog

これにより、CRONの実行ログを確認できます。

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?