6
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 3 years have passed since last update.

service crond statusでunrecognized serviceされる

Last updated at Posted at 2020-06-23

crontabが動かん。下のコマンドを使って、crondが動いているのか確認するとunrecognized serviceと怒られる。

service crond status

結果、以下のコマンドでやったらうまくいった。

まず、crontabを起動する。

crontab -e

所望の処理を書いてエディタを閉じる。次にcronを以下のコマンドで再起動する。

sudo /etc/init.d/cron restart

これで動いた。

6
0
1

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
6
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?