Comments (5)
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.
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.
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.
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.
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)
- is_running() appears to be creating busted .pid files HOT 1
- Sometimes when a server dies it locks the port.
- Log rotation ignores settings HOT 1
- pidfile messed up HOT 1
- more "Rogue pidfile found!", works with direct command HOT 2
- Log Roll rolling blank file. HOT 2
- fix for 'grep' in mc_start
- Issues with Centos 5
- I'm Confused HOT 2
- Output using stdout and stderr respectively
- Failed to bind to port.
- version for forge HOT 1
- Cannot list connected players
- Check Permissions
- In-game restart to work with this init script
- Update broken (solved by myself, patch your script now) HOT 2
- Rogue Pidfile Found HOT 3
- Update doesnt work
- There is no screen to be attached matching server.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minecraft-init.