Skip to content
Snippets Groups Projects
Commit 7b2b241a authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Use dirs for sections.

parent 5557dba6
No related branches found
No related tags found
No related merge requests found
Showing
with 8 additions and 19 deletions
#!/usr/bin/python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os import os
......
#!/usr/bin/python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os import os
......
File moved
File moved
#!/bin/bash
source /root/envsetup/conf.sh
# optimisations nginx
if ( test -f /etc/nginx/nginx.conf )
then
CPU=$(cat /proc/cpuinfo | grep processor | wc -l)
sed -i "s@worker_processes .*@worker_processes ${CPU};@" /etc/nginx/nginx.conf
service nginx restart
fi
...@@ -7,5 +7,5 @@ DEBIAN_FRONTEND=noninteractive apt-get install -y python3-mediaserver ...@@ -7,5 +7,5 @@ DEBIAN_FRONTEND=noninteractive apt-get install -y python3-mediaserver
# session ms # session ms
msinstaller.py msuser msinstaller.py msuser
# mv MS_deploy.sh to /var/tmp # copy MS_deploy.sh to /var/tmp
mv MS_deploy.sh /var/tmp/MS_deploy.sh cp MS_deploy.sh /var/tmp/MS_deploy.sh
#!/usr/bin/python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import utils import utils
......
...@@ -5,11 +5,11 @@ This script checks services that require /home are started. ...@@ -5,11 +5,11 @@ This script checks services that require /home are started.
If /home is not mounted, a mail is sent and in the other case, If /home is not mounted, a mail is sent and in the other case,
it checks that all services that depend on /home are started. it checks that all services that depend on /home are started.
''' '''
import os import datetime
import sys
import imp import imp
import os
import socket import socket
import datetime import sys
if __name__ == '__main__': if __name__ == '__main__':
...@@ -37,7 +37,6 @@ if __name__ == '__main__': ...@@ -37,7 +37,6 @@ if __name__ == '__main__':
fail_silently=True fail_silently=True
) )
else: else:
os.system('service apache2 start')
os.system('mscontroller.py start') os.system('mscontroller.py start')
os.system('msmonitor-website.sh start') os.system('msmonitor-website.sh start')
os.system('/etc/init.d/campus-manager start') os.system('/etc/init.d/campus-manager start')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment