Auto start Minetest server with Ubuntu

DI3HARD139
Member
 
Posts: 144
Joined: Sat Oct 18, 2014 21:04
GitHub: DI3HARD139
IRC: DI3HARD139
In-game: DI3HARD139 DI3HARD139_

Auto start Minetest server with Ubuntu

by DI3HARD139 » Fri Mar 20, 2015 19:19

How can I auto start the minetestserver file with ubuntu? OS Version is 14.04.
Servers: mt.rrhgameservers.ml = [RRH] MT-Creative (48250), RRH-Survival (48253), Unknown (48255), Minetest City (48262)
Specs = Intel Core i5-3570s 16GB DDR3 2TB HDD, Ubuntu Server 16.04.1 x64 XFCE
------------------------------------------------------------
System: Lenovo Thinkstation S30 = Intel Xeon E5-2665, 20GB DDR3 (1333MHz Non-ECC), Gigabyte GTX1060 6GB, 3.5TB Storage, Win 10 Pro x64.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: Auto start Minetest server with Ubuntu

by Calinou » Fri Mar 20, 2015 20:17

I think you can create a shell script or .desktop file, that you put in /etc/xdg/autostart. This is for a desktop system.

Maybe editing the init script (/etc/rc.local) will work, try at your own risk.
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Auto start Minetest server with Ubuntu

by Don » Fri Mar 20, 2015 21:33

This should do what you want. I never tested it but as long as you point to the right place for minetest it should work.

https://www.liberiangeek.net/2013/05/he ... -ringtail/
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof

Re: Auto start Minetest server with Ubuntu

by lightonflux » Tue Mar 31, 2015 04:27

Personally i really like to use cron for that.

Just add the line

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
@reboot minetestserver


It works on desktop and server and the great thing is that cron is per user. And you don't mess with rc.local.

https://help.ubuntu.com/community/CronH ... ed_Crontab
 

Ada18!
New member
 
Posts: 2
Joined: Tue Mar 31, 2015 15:08

Re: Auto start Minetest server with Ubuntu

by Ada18! » Fri Apr 03, 2015 05:06

It won't work without ubuntu.
Ada
 

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof

Re: Auto start Minetest server with Ubuntu

by lightonflux » Sat Apr 04, 2015 14:57

Ada18! wrote:It won't work without ubuntu.



What exactly doesn't work without Ubuntu?
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 14 guests

cron