Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this script to restart minecraft once a day? #143

Open
maxim27 opened this issue Jul 21, 2013 · 1 comment
Open

How to use this script to restart minecraft once a day? #143

maxim27 opened this issue Jul 21, 2013 · 1 comment

Comments

@maxim27
Copy link

maxim27 commented Jul 21, 2013

Hi,
i just want to make sure that i did not do something that is not necessary. Does the script in its default configuration (the given contab settings in the setup tutorial) do minecraft server restarts?
i want to automaticaly restart my minecraft server (just the program not the whole server) at least once a day, idealy every 6 hours or so.
Is it ok to put the following line into the crontab or is it not necessary or wrong?
00 6,12,18,24 * * * /etc/init.d/minecraft restart

@Leopere
Copy link

Leopere commented Jul 30, 2013

probably but if you followed the guide you could replace the filepath with the service name.
in this case it would be "service minecraft restart"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants