GithubHelp home page GithubHelp logo

CentOS7 about minecraft-init HOT 5 OPEN

DenValk avatar DenValk commented on July 27, 2024
CentOS7

from minecraft-init.

Comments (5)

shakeyourbunny avatar shakeyourbunny commented on July 27, 2024

No wonder, CentOS 7 switched to "the future of init systems" and is not compatible with "old useless System V Init" due to a whole incompatible way of booting the distribution :)

from minecraft-init.

DenValk avatar DenValk commented on July 27, 2024

I actually made work around that I will submit/post when I get home. A couple links have to be changed, but other than that it works just fine.

---- On Tue, 14 Oct 2014 03:21:15 -0700 shakeyourbunny <[email protected]> wrote ----

No wonder, CentOS 7 switched to "the future of init systems" and is not compatible with "old useless System V Init".
minecraft-init would need a rewrite from scratch and this won't (hopefully) happen.

Reply to this email directly or view it on GitHub.

from minecraft-init.

DenValk avatar DenValk commented on July 27, 2024

So, changes I had to make to get it to run on CentOS7.

In minecraft I changed each occurence of /etc/init.d to $SRVPATH

In config, I added the following lines

Path to Service Location --typically "/etc/init.d"

SRVPATH="/srv/mcsrv"

I created the file minecraft.service in /etc/systemd/system. The file contains:

[Unit]
Description=MineCraft Server
Requires=network.target
After=network.target

[Service]
User=mcserver
ExecStart=/srv/mcsrv/minecraft start
ExecStop=/srv/mcsrv/minecraft stop
Type=forking
GuessMainPID=true

[Install]
WantedBy=multi-user.target

and executed of course
ln -s /home/MCUSER/MCPATH/minecraft /srv/mcsrv/minecraft

It seems to be working well.

I may make some more edits and clean things up later.

from minecraft-init.

Leopere avatar Leopere commented on July 27, 2024

Did these changes get accepted? I would love to have this work with systemd I feel like it adds the final missing piece for the uptime puzzle. May I suggest inclusion of the "restart=" directive?

from minecraft-init.

DenValk avatar DenValk commented on July 27, 2024

I didn't. Before I really got into it, I started my Ph.D. program, and I haven't played but a few hours of any game, let alone manage my server since. Feel free to clean it up, give it some polish, and submit it yourself if you like. I like the idea of including the "restart=" directive.

from minecraft-init.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.