定期的に再起動するもの(bash?)を作りたいのですが、わからない部分があるのでお願いします。
https://jyn.jp/minecraft-server-auto-restart/
こちらの記事を参考に作成したのですが、crontab -e で編集画面は開けましたが、どこに記載すればいいのかが分からなかったので、質問させていただきました。
後はcronで定期的に実行するだけです。 「crontab -e」でcrontabの編集画面が開くので以下を参考に追記して下さい。 0 4 * * * /スクリプトがあるディレクトリ/restart.sh > /dev/null 2>&1
# daemon's notion of time and timezones. # # Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ # # For more information see the manual pages of crontab(5) and cron(8) # # m h dom mon dow command
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/01/05 00:21