diff options
Diffstat (limited to 'win32/OpenERPServerService.py')
| -rw-r--r-- | win32/OpenERPServerService.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/win32/OpenERPServerService.py b/win32/OpenERPServerService.py index 1a2b208417b..85cd884a839 100644 --- a/win32/OpenERPServerService.py +++ b/win32/OpenERPServerService.py @@ -27,9 +27,9 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##############################################################################
#
-# TinyERPServerService.py
+# OpenERPServerService.py
#
-# Script installing Tiny ERP as Windows service
+# Script installing OpenERP as Windows service
# Win32 python extensions modules
import win32serviceutil
@@ -44,12 +44,12 @@ import subprocess import os
import thread
-class TinyERPServerService(win32serviceutil.ServiceFramework):
+class OpenERPServerService(win32serviceutil.ServiceFramework):
# required info
- _svc_name_ = "tinyerp-service"
- _svc_display_name_ = "Tiny ERP Server"
+ _svc_name_ = "openerp-service"
+ _svc_display_name_ = "OpenERP Server"
# optionnal info
- _svc_description_ = "Tiny ERP Server service"
+ _svc_description_ = "OpenERP Server service"
def __init__(self, args):
win32serviceutil.ServiceFramework.__init__(self, args)
@@ -67,7 +67,7 @@ class TinyERPServerService(win32serviceutil.ServiceFramework): self.ReportServiceStatus(win32service.SERVICE_STOP_PENDING)
# stop the running TERP Server: say it's a normal exit
win32api.TerminateProcess(int(self.terpprocess._handle), 0)
- servicemanager.LogInfoMsg("Tiny ERP Server stopped correctly")
+ servicemanager.LogInfoMsg("OpenERP Server stopped correctly")
# And set my event.
win32event.SetEvent(self.hWaitStop)
@@ -78,7 +78,7 @@ class TinyERPServerService(win32serviceutil.ServiceFramework): # The server's binary must be one directory above the service's binary (when py2exe'd the python libraries shouldn' mix)
service_dir = os.path.dirname(sys.argv[0])
server_dir = os.path.split(service_dir)[0]
- server_path = os.path.join(server_dir, 'tinyerp-server.exe')
+ server_path = os.path.join(server_dir, 'openerp-server.exe')
self.terpprocess = subprocess.Popen([server_path], \
cwd=server_dir,
creationflags=win32process.CREATE_NO_WINDOW)
@@ -90,22 +90,22 @@ class TinyERPServerService(win32serviceutil.ServiceFramework): self.stopping = True
def SvcDoRun(self):
- # Start Tiny ERP Server itself
+ # Start OpenERP Server itself
self.StartTERP()
# start the loop waiting for the Service Manager's stop signal
thread.start_new_thread(self.StartControl, (self.hWaitStop,))
# Log a info message that the server is running
- servicemanager.LogInfoMsg("Tiny ERP Server up and running")
+ servicemanager.LogInfoMsg("OpenERP Server up and running")
# verification if the server is really running, else quit with an error
self.terpprocess.wait()
if not self.stopping:
- sys.exit("Tiny ERP Server check: server not running, check the logfile for more info")
+ sys.exit("OpenERP Server check: server not running, check the logfile for more info")
if __name__=='__main__':
# Do with the service whatever option is passed in the command line
- win32serviceutil.HandleCommandLine(TinyERPServerService)
+ win32serviceutil.HandleCommandLine(OpenERPServerService)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
