glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] YOG


From: Bradley Arsenault
Subject: Re: [glob2-devel] YOG
Date: Sun, 20 Apr 2008 13:50:29 -0400

On Sun, Apr 20, 2008 at 12:32 PM, Leo Wandersleb <address@hidden> wrote:
Hi *

I modified the start script to
* reveal the YOG server in "ps -Alf"
* restart every 25s instead of every 5s
* and redirect output to /dev/null
Why restart after 25s? That means that if the server crashes, its exactly 25s until it restarts, this seems like an unneccessarrily long time, especially when testing the server and we need to restart it often.
 
 
 
What would we need to change so we can run the server as "glob2"? Didn't test if we can already but i'd rather want more people to be able to restart yog than to give more people root.
 
YOG can be restarted using admin commands anyhow, you don't need to ssh into it anymore.
 
also we need a startup-script in /etc/init.d so we survive reboots

Greetings, Leo

h1145132:/home/glob2/glob2_servers# cat Beta1YOGServer.sh Beta2YOGServer.sh Beta3YOGServer.sh
#!/bin/bash

while sleep 20
do
       cd /home/glob2/glob2_servers
       ./glob2-beta1-rc/src/glob2 -daemon >/dev/null
done
#!/bin/bash

while sleep 25
do
       cd /home/glob2/glob2_servers/
       ./glob2-beta2-rc/src/glob2 -daemon >/dev/null
done
#!/bin/bash

while sleep 25
do
       cd /home/glob2/glob2_servers
       ./glob2-beta3-rc/src/glob2 -daemon > /dev/null
done
ps -Alf | grep glob2
4 S root      1563  1557  0  76   0 -  2760 -      15:26 pts/2    00:00:00 ./glob2-beta1-rc/src/glob2 -daemon
4 S root      1612  1599  0  76   0 -  2841 -      15:28 pts/2    00:00:00 ./glob2-beta2-rc/src/glob2 -daemon
4 S root      1968  1962  0  76   0 -  8913 -      15:34 pts/2    00:00:00 ./glob2-beta3-rc/src/glob2 -daemon


--
Extra cheese comes at a cost. Bradley Arsenault.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]