Hi,

I'm not sure if this is "proper", but...

I created a swiki named 'control' and then added book address
'restart' for the swiki (using Swiki Browser) as:


----- begin of control / addresses(book) / restart -----
  [
      "Close any SwikiBrowser before stopping servers"
      ScheduledControllers
          scheduledControllers do: [ :ctrl |
              (ctrl view model isKindOf: SwikiShelf)
                  ifTrue: [ ctrl closeAndUnschedule ] ].
      ComSwikiLauncher
          allInstancesDo: [ :launcher |
              launcher stopServer ].
      ComSwikiLauncher
          allInstancesDo: [ :launcher |
              launcher startServer ]
  ] fork.
  "Redirect to Success"
  response
      at: 'headerStatus' put: #tempMoved;
      at: 'location' put: (request referenceShelf: shelf address: 'control').
  shelf
      formatShelfTemplate: 'location'
      request: request
      response: response
----- end of control / addresses(book) / restart -----

Now I can restart my headless ComSwiki by opening
http://myswiki/control/restart.

You can setup the security of the new 'control' swiki as usual
(using /admin) so that only the privileged persons are allowed
to restart your swiki.

Isn't this handy? :-)

On Thu, Dec 12, 2002 at 05:31:42PM -0700, David Farber wrote:
> 
> Is there a "proper" way to stop a headless swiki under Linux? Or is 'kill' my only 
>choice?
> 
> david
> 
> --
> David Farber
> [EMAIL PROTECTED]
> 

Reply via email to