forked from ScuttleSE/gbsfm_web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrestart.sh
executable file
·58 lines (32 loc) · 924 Bytes
/
restart.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
#!/bin/sh
# - Ensure no relevent processes are still running:
echo "(re)starting gbsfm. This must be run in the root pydj directory!"
echo "Starting venv"
source bin/activate
killall sc_serv
echo "sc_serv killed"
killall ices
echo "ices killed"
echo "Setting up static files directory..."
python manage.py collectstatic
echo "Starting the main web interface"
uwsgi --ini server_config/pydj_uwsgi.ini
cd ./sc_serv
nohup ./sc_serv sc_serv.conf &
echo "sc_serv started"
##sleep 1
##killall manage.py
##sleep 1
##killall python
#echo "All python-related processes killed"
##sleep 1
##sleep 1
##python manage.py runfcgi method=prefork socket=/tmp/fcgi.sock maxrequests=500 maxchildren=7
#echo "Starting the main web interface"
#echo "Main web interface started"
##sleep 1
##nohup python manage.py ftp &
#echo "FTP-server started"
##sleep 1
#echo "Now start the stream using the webpage"
##deactivate