Skip to content

Instantly share code, notes, and snippets.

View Kainzo's full-sized avatar

Kainzo Kainzo

View GitHub Profile
@Kainzo
Kainzo / mc.sh
Created January 28, 2016 21:29 — forked from PhanaticD/mc.sh
#!/bin/bash
SERVERNAME="placeholder"
SERVICE="placeholder.jar"
MCPATH="/home/user/placeholder"
BACKUPPATH="/hd2/backups/placeholder"
INVOCATION="java -Xms2G -Xmx8G -jar $SERVICE"
mc_start() {
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null