Computing.Net > Forums > Linux > auto shutdown linux server

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

auto shutdown linux server

Reply to Message Icon

Name: abdul
Date: September 18, 2002 at 05:48:48 Pacific
OS: redhat 7.2
CPU/Ram: pentium 128mb ram
Comment:


we are running 2 linux server in our network
server1 is configured to shutdown automatically at a predefine time
is there any way to shutdown server2 automatically only when server1 is shutting down.
i want to automate the task
thanks in advance



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: September 18, 2002 at 07:00:47 Pacific
Reply:

How about dumping something in /etc/init.d/rc0.d?


0

Response Number 2
Name: Def
Date: September 18, 2002 at 07:18:55 Pacific
Reply:

You can make shell script and put them to cron

script.sh
--
if a=`ping -q -c 1 -w 3 server_ip 2>/dev/null`; then printf "";else poweroff;fi
--

If primary server not reply to ping query - secondary server turn off by command poweroff (also you can use command init 0)

-----------
Sincerely,
Andrew A.Romanchenko
AlarIT programmer
http://www.AlarIT.com


0

Response Number 3
Name: abdul
Date: September 19, 2002 at 00:16:32 Pacific
Reply:

actually i donot want to ping server1 from server2 continuosly

Any other method ?

thanks


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: auto shutdown linux server

Remote shutdown of Linux servers www.computing.net/answers/linux/remote-shutdown-of-linux-servers/1844.html

auto-shutdown linux at a certain time www.computing.net/answers/linux/autoshutdown-linux-at-a-certain-time/1653.html

Auto shutdown www.computing.net/answers/linux/auto-shutdown-/7746.html