Author: ks156
Date: 2009-03-18 14:37:10 +0100 (Wed, 18 Mar 2009)
New Revision: 4133

Modified:
   
software_suite_v2/tuxware/installers/unix/branches/refactoring/software_updater/tux_software_updater.py
Log:
* Restart the service after the update


Modified: 
software_suite_v2/tuxware/installers/unix/branches/refactoring/software_updater/tux_software_updater.py
===================================================================
--- 
software_suite_v2/tuxware/installers/unix/branches/refactoring/software_updater/tux_software_updater.py
     2009-03-18 12:10:01 UTC (rev 4132)
+++ 
software_suite_v2/tuxware/installers/unix/branches/refactoring/software_updater/tux_software_updater.py
     2009-03-18 13:37:10 UTC (rev 4133)
@@ -92,7 +92,8 @@
             proceed = False
     return proceed
 
-def __updateSystem(data, toInstall, toRemove, processToKillList):
+def __updateSystem(data, toInstall, toRemove, processToKillList,
+        processToRelaunchList):
     """__updateSystem
     This function install, update or remove the applications from the server.
     It also kill the process specified before updating the system.
@@ -103,7 +104,7 @@
     """
     # Kill the services
     for service in processToKillList:
-        os.system("pkill -f %s"%service)
+        os.system("%s"%service)
 
     pb = progressBar()
     pb.init(len(toInstall), 'Download', '%')
@@ -152,6 +153,8 @@
                 os.system("cd %s && /bin/bash uninstall.sh"%dest)
                 if os.path.isdir(dest):
                     RMDirs(dest)
+    for service in processToRelaunchList:
+        os.system("%s"%service)
 
 def __isRightArchitecture(item):
     global ARCH
@@ -246,7 +249,8 @@
     toInstall, toRemove = __retrieveRules(data)
     
     if  __isSomethingToUpdate(toInstall):
-        __updateSystem(data, toInstall, toRemove, processToKillList)
+        __updateSystem(data, toInstall, toRemove, processToKillList,
+                processToRelaunchList)
 
             
 if __name__ == "__main__":


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to