-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.py
More file actions
26 lines (26 loc) · 821 Bytes
/
init.py
File metadata and controls
26 lines (26 loc) · 821 Bytes
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
#! /usr/bin/env python
import sys,os,commands
import config.optionCommand as oc
import config.control as control
command = oc.menuServer()
print "============================"
print oc.titleAction(command)
print "============================"
if command == 1:
option = oc.menuOption()
if option == 1:
commands.getoutput(control.restartMySql())
if option == 2:
commands.getoutput(control.stopMySql())
if option == 3:
commands.getoutput(control.startMySql())
print "Process executed...\n"
if command == 2:
option = oc.menuOption()
if option == 1:
commands.getoutput(control.restartMySql())
if option == 2:
commands.getoutput(control.stopApache())
if option == 3:
commands.getoutput(control.startApache())
print "Process executed...\n"