aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-11-08 23:35:51 +0100
committercedricbonhomme <devnull@localhost>2012-11-08 23:35:51 +0100
commitd6fbaa42376c2807a47e1fe325dceee34d5258e2 (patch)
treec9435af6d4b5369e309edb268ef21984133913ff /source
parentRe-enabled tooltip description. (diff)
downloadnewspipe-d6fbaa42376c2807a47e1fe325dceee34d5258e2.tar.gz
newspipe-d6fbaa42376c2807a47e1fe325dceee34d5258e2.tar.bz2
newspipe-d6fbaa42376c2807a47e1fe325dceee34d5258e2.zip
changed things...
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