LoginSignup
1
0

More than 5 years have passed since last update.

crontabを利用したサーバ再起動時の処理

Posted at

目的

xserverなどのレンタルサーバでメンテナンスのための再起動時に、自分の利用しているプロセスも起動させたい

方法

crontabが利用できたので
@rebootをつかてシェルを叩くようにした

xserverの場合、管理画面からは@rebootは設定できないので、直接cronに書く

結果

xserverの場合、メンテナンスでサーバ再起動されても、無事にredisのプロセスを起動させることができた。

また、サーバ再起動通知ために同じ方法でメール送信するようにしました。

1
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
1
0