-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Docker起動時のcron設定 | ||
## 1. crontabの編集モードを起動 | ||
``` | ||
crontab -e | ||
``` | ||
|
||
## 2. 以下を記述 | ||
``` | ||
0 9 * * 1 date >> /usr/clustering/server.log | ||
0 9 * * 1 /usr/local/bin/cron.sh | ||
``` | ||
|
||
## 3.cronの起動 | ||
``` | ||
service cron start | ||
``` | ||
|
||
## 4.cronの確認 | ||
``` | ||
service cron status | ||
``` |