forked from vfleaking/uoj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathup
executable file
·35 lines (28 loc) · 774 Bytes
/
up
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
#!/bin/bash
if ! service ntp start; then
echo -e "\033[1;91m"
echo "UOJ ERROR: ntp did not start successfully!"
echo -e "\033[0m"
fi
if ! service mysql start; then
echo -e "\033[1;91m"
echo "UOJ ERROR: mysql did not start successfully!"
echo -e "\033[0m"
fi
if ! service apache2 start; then
echo -e "\033[1;91m"
echo "UOJ ERROR: apache2 did not start successfully!"
echo -e "\033[0m"
fi
if ! svnserve -d -r /var/svn; then
echo -e "\033[1;91m"
echo "UOJ ERROR: svn did not start successfully!"
echo -e "\033[0m"
fi
if ! su local_main_judger -c '~/judge_client/judge_client start'; then
echo -e "\033[1;91m"
echo "UOJ ERROR: judger did not start successfully!"
echo -e "\033[0m"
fi
echo "UOJ starts successfully!"
exec bash