- Joined
- Nov 1, 2008
- Messages
- 4,213 (0.75/day)
- Location
- Vietnam
System Name | Gaming System / HTPC-Server |
---|---|
Processor | i7 8700K (@4.8 Ghz All-Core) / R7 5900X |
Motherboard | Z370 Aorus Ultra Gaming / MSI B450 Mortar Max |
Cooling | CM ML360 / CM ML240L |
Memory | 16Gb Hynix @3200 MHz / 16Gb Hynix @3000Mhz |
Video Card(s) | Zotac 3080 / Colorful 1060 |
Storage | 750G MX300 + 2x500G NVMe / 40Tb Reds + 1Tb WD Blue NVMe |
Display(s) | LG 27GN800-B 27'' 2K 144Hz / Sony TV |
Case | Xigmatek Aquarius Plus / Corsair Air 240 |
Audio Device(s) | On Board Realtek |
Power Supply | Super Flower Leadex III Gold 750W / Andyson TX-700 Platinum |
Mouse | Logitech G502 Hero / K400+ |
Keyboard | Wooting Two / K400+ |
Software | Windows 10 x64 |
Benchmark Scores | Cinebench R15 = 1542 3D Mark Timespy = 9758 |
Hi all,
I've been playing around with ubuntu server 16.04, scripts and cron for about 3 hours to no avail and need some serious help. It's rather frustrating as I managed to get what I wanted to do to work on a previous install, I just can't do it any more.
Basically, I have a minecraft spigot server running on an old laptop for my kids and i'd like to have it start in a new screen session on every reboot.
The commands I use to start the server are as follows:
Screen
cd minecraft
java -Xms512M -Xmx1008M -jar ./spigot-1.12.2.jar nogui
And the server starts fine.
I'm trying to make a script that i can put in cron to run @Reboot, but every attempt ends in failure.
I either get thousands of screen sessions open, an eula error (the text file needs to be set to eula=true (which it is already), or it just fails to run.
I've managed to make a script that will start the server (though I've since deleted it), I just can't for the life of me get it to work with cron and screen.
I'd like to run it in a screen session, rather than as a service so I can switch to the session and enter commands if needed.
If anyone could help, I'd greatly appreciate it.
I've been playing around with ubuntu server 16.04, scripts and cron for about 3 hours to no avail and need some serious help. It's rather frustrating as I managed to get what I wanted to do to work on a previous install, I just can't do it any more.
Basically, I have a minecraft spigot server running on an old laptop for my kids and i'd like to have it start in a new screen session on every reboot.
The commands I use to start the server are as follows:
Screen
cd minecraft
java -Xms512M -Xmx1008M -jar ./spigot-1.12.2.jar nogui
And the server starts fine.
I'm trying to make a script that i can put in cron to run @Reboot, but every attempt ends in failure.
I either get thousands of screen sessions open, an eula error (the text file needs to be set to eula=true (which it is already), or it just fails to run.
I've managed to make a script that will start the server (though I've since deleted it), I just can't for the life of me get it to work with cron and screen.
I'd like to run it in a screen session, rather than as a service so I can switch to the session and enter commands if needed.
If anyone could help, I'd greatly appreciate it.