Dear Wiki user,

You have subscribed to a wiki page or wiki category on "James Wiki" for change 
notification.

The following page has been changed by MattBishop:
http://wiki.apache.org/james/RunAsService

The comment on the change is:
The "sudo sh" in the James StartupItems script isn't necessary.

------------------------------------------------------------------------------
  StartService ()
  {
      ConsoleMessage "Starting Apache James Mail Server"
-     sudo sh ${PHOENIX_HOME}/bin/phoenix.sh start
+     ${PHOENIX_HOME}/bin/phoenix.sh start
      ConsoleMessage -S
  }
  
  StopService ()
  {
      ConsoleMessage "Stopping Apache James Mail Server"
-     sudo sh ${PHOENIX_HOME}/bin/phoenix.sh stop
+     ${PHOENIX_HOME}/bin/phoenix.sh stop
      ConsoleMessage -S
  }
  
  RestartService ()
  {
      ConsoleMessage "Restarting Apache James Mail Server"
-     sudo sh ${PHOENIX_HOME}/bin/phoenix.sh restart
+     ${PHOENIX_HOME}/bin/phoenix.sh restart
      ConsoleMessage -S
  }
  
@@ -169, +169 @@

  RunService "$1"
  }}}
  
- For 10.2, James needs to be started with the sudo command so that it will be 
allowed to open ports 110 and 25.  Also, this 'James' file needs to be marked 
as executable, which can be set with this command:
+ This 'James' file needs to be marked as executable, which can be set with 
this command:
  
  {{{
   chmod 755 /Library/StartupItems/James/James

Reply via email to