-
Notifications
You must be signed in to change notification settings - Fork 0
/
server_startup.sh
63 lines (52 loc) · 1.44 KB
/
server_startup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# Server Startup Script
# Written by Jesse N. Richardson (Flare183, negativeflare) [[email protected]]
# Wrote because I got lazy and didn't want to run 100+ Programs when I start up my server
# And because I didn't want to write some dumb service files for it either
# Filename: server_startup.sh
# Clearing the screen
# clear
# cd ~
# echo "Running ZNC..."
# sleep 2
# znc
# cd ~
# echo "Starting Minecraft..."
# # sleep 2
# # ./start.sh
# echo "Switching to Minecraft Account"
# sudo su minecraft
# cd minecraft_current
# ./start.sh &
# exit
# echo "Exiting Minecraft Account"
# cd ~
# cd /usr/local/games
# echo "Starting Tremulous Server"
# screen /tremded-gpp.x86 +set g_humanBuildPoints 150 +set alienBuildPoints 150 +set dedicated 1 +exec server.cfg &
# cd ~
# cd ts3server/teamspeak3-server_linux_x86
# ./ts3server_startscript.sh start
# echo "Going to run cups-browsed, this will ask for your sudo password..."
# sleep 5
# sudo cups-browsed
# echo "Starting up Dropbox..."
# dropbox start
# sleep 5
# echo "Done"
echo "Running Server Startup Script"
echo "And yes, I could make this into a actual systemd statup script"
echo "But what's the fun in that?"
sleep 10
echo "Running znc"
znc
echo "Switching over to Minecraft user and starting up minecraft"
sudo su minecraft
cd papernut
./start &
exit
echo "Should be switched out back to the main user"
cd ts3_server/teamspeak3-server_linux_amd64/
./ts3server_startscript.sh start
cd ~
echo "Done."