[Vserver] - Re-launch Script for OS X.4.6

Russ Tyndall fitzbew at nc.rr.com
Mon Apr 10 08:48:57 CDT 2006


On 4/10/06 3:12 AM, "Ruslan Zasukhin" <sunshine at public.kherson.ua> wrote:

> On 4/10/06 5:27 AM, "Russ Tyndall" <fitzbew at nc.rr.com> wrote:
> 
> Hi Russ,
> 
>> Does anyone have a script that will restart Vserver (on OS X.4.6) on a user
>> logout?  Or some other mechanism to keep Vserver running regardless of user
>> activity?
> 
>> Currently, it runs great at bootup and I can start it manually in the
>> Terminal, but when a user logs out, it gets killed.
>> 
>> Thanks for any advice.
> 
> And next login do not start it ?
>

On my machine, when a user logs out, the Vserver process is killed.  Logging
in again as a different user (or the same user) does not start it again.
Only rebooting.

Starts up fine when machine boots up.  And is running fine, even when login
window listing users is first displayed.  And when any user logs in, Vserver
remains running.  But if any user logs out, it quits and does not relaunch
until reboot.

I *believe* this is expected behavior since startup item is in
/Library/StartupItems, not ~/Library/Startupitems.  What if I put the
startup item in both user and system-level libraries?  Even if this is ok,
Vserver will receive a startup command twice. Once when machine boots up and
again when first user logs in.  Perhaps this is ok, I will experiment.
 
> Yuri have told actually that we need modify our StartupItems script to have
> loop:
> 
> This is psudo-code
> 
> 
> --------------------------------
> loop
> {
>   start vserver
> }
> --------------------------------
> 
> Then if crash or else, server will be started again by loop.
> 

Yes, VNC has a similar-looking script installed in its directory, but I know
nothing about modifying it for Vserver.

> 
> Note, that you can start/stop server self from e.g. REALbasic code
> Using shell command. For this you need know its exact path and name.
> 
>   /Library/VServer_Office/VServer_Office.app/Contents/MacOS/VServer_Office
> 
> Look at /Library/StartupItems/VServer_Office/VServer_Office
> 
> 
> ------------------------------
> Let me know any more ideas/dream you want. We will think how todo
> 

Well, I cautiously guess that most Vserver users in OS X would like Vserver
to continue running even when a user logs out and returns to the login
window.  Perhaps most machines do, this may just be me.

For the time being, I'll experiment with the startup items.

-- 
Russ Tyndall
Wake Forest, NC





More information about the Valentina mailing list