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?

crontab

Posted at

ステータス確認

Bash
# crondのステータス確認
systemctl status crond
# または
service crond status
Bash
### 起動・停止・再起動コマンド
# 起動
systemctl start crond
# 停止
systemctl stop crond
# 再起動
systemctl restart crond

自動起動の設定

Bash
# システム起動時に自動的に起動するように設定
systemctl enable crond
# 自動起動を無効化
systemctl disable crond

crontabの設定確認

Bash
# 現在のユーザーのcrontab確認
crontab -l
# rootユーザーのcrontab確認
sudo crontab -l

トラブルシューティング

Bash
# cronのログを確認
tail -f /var/log/cron
# システムログでcronの動作を確認
journalctl -u crond
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?