[PC-BSD Commits] r17451 - pcbsd/current/src-qt4/warden-gui

svn at pcbsd.org svn at pcbsd.org
Tue Jun 26 07:44:16 PDT 2012


Author: kris
Date: 2012-06-26 14:44:16 +0000 (Tue, 26 Jun 2012)
New Revision: 17451

Modified:
   pcbsd/current/src-qt4/warden-gui/dialogwarden.cpp
Log:

Fix starting / stopping jails to use "warden" command directly



Modified: pcbsd/current/src-qt4/warden-gui/dialogwarden.cpp
===================================================================
--- pcbsd/current/src-qt4/warden-gui/dialogwarden.cpp	2012-06-26 14:43:13 UTC (rev 17450)
+++ pcbsd/current/src-qt4/warden-gui/dialogwarden.cpp	2012-06-26 14:44:16 UTC (rev 17451)
@@ -634,9 +634,9 @@
 	
       // Now start the script to stop this jail
       stopJailProc = new QProcess( this );
-      QString program = ProgDir + "/scripts/backend/stopjail.sh";
+      QString program = "warden";
       QStringList args;
-      args << popupip;
+      args << "stop" <<popupip;
       
       // Connect the exited signal and start the process
       connect( stopJailProc, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(slotFinishedWorking() ) );
@@ -666,9 +666,9 @@
 	
       // Now start the script to stop this jail
       startJailProc = new QProcess( this );
-      QString program =  ProgDir + "/scripts/backend/startjail.sh";
+      QString program =  "warden";
       QStringList args;
-      args << popupip;
+      args << "start" << popupip;
       
       // Connect the exited signal and start the process
       connect( startJailProc, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(slotFinishedWorking() ) );



More information about the Commits mailing list