aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rwxr-xr-xsource/pyAggr3g470r14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/pyAggr3g470r b/source/pyAggr3g470r
index 2b367bb8..5bce5181 100755
--- a/source/pyAggr3g470r
+++ b/source/pyAggr3g470r
@@ -84,13 +84,13 @@ def start():
if not checkpid(servicename = SERVICE):
pid = service_start(servicename = SERVICE)
writepid(processname = SERVICE, pid = pid)
- print SERVICE + " is starting with pid: " + pidof(processname=SERVICE)
+ print(SERVICE + " is starting with pid: " + pidof(processname=SERVICE))
else:
- print SERVICE + " could not be started (pid exists)"
+ print(SERVICE + " could not be started (pid exists)")
retval=False
def stop():
- print "Stopping pyAggr3g470r..."
+ print("Stopping pyAggr3g470r...")
retval=True
pid = pidof(processname=SERVICE)
if pid:
@@ -104,15 +104,15 @@ def stop():
else:
try:
os.kill(int(pid), signal.SIGKILL)
- except OSError, e:
- print SERVICE + " unsuccessfully stopped"
+ except OSError as e:
+ print(SERVICE + " unsuccessfully stopped")
retval = False
- print SERVICE
+ print(SERVICE)
rmpid(processname=SERVICE)
return retval
def usage():
- print "pyAggr3g470r (start|stop|restart)"
+ print("pyAggr3g470r (start|stop|restart)")
exit (1)
if __name__ == "__main__":
bgstack15