- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: server shutdown
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 07:16 PM
05-19-2005 07:16 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 07:26 PM
05-19-2005 07:26 PM
Re: server shutdown
y dont u schedule the shutdown in the crontab instead?
No junior staff intervention will be required.
Thanks/cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 07:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 07:33 PM
05-19-2005 07:33 PM
Re: server shutdown
why don't you put script in crontab???
be sure that your system do not run database agent at shutdown time (if your system has oracle, DBII... runing , pls shutdown it firts).
1. write shutdown sript
#!/sbin/sh
shutdown -hy 0
SAVE IT TO /downserver.sh
2. add to crontab
#crontab -e
minute hour date month weekday command
00 00 * * * sh /downserver.sh
THAT'S ALL.
HTH
TIENNA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 08:13 PM
05-19-2005 08:13 PM
Re: server shutdown
Yes , I will try to write a script to schedule it , besides that , I also want have a method to shutdown the server when in the unexpected case like power failure or require to urgently shutdown when I am not in the office , so I would ask my colleague to shutdown it for me , is there any method ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 08:26 PM
05-19-2005 08:26 PM
Re: server shutdown
# vi /etc/shutdown.allow
user_name hostname
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 08:43 PM
05-19-2005 08:43 PM
Re: server shutdown
I think perterchu should not use
"shutdown -r -y now' because -r option is restart server, he need to shutdown server so I recommend him use -h option
"shutdown -hy 0' or "shutdown -h -y now"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 08:50 PM
05-19-2005 08:50 PM
Re: server shutdown
I would suggest like many others have done, go ahead and schedule a script for shutdown/startup depending on your requirement. By this if you have some junior staff that need to be notified, this can be done using page/mail on the system. i.e mail/page prior to shutdown and then mail/page when the system is back up
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 08:51 PM
05-19-2005 08:51 PM
Re: server shutdown
You can also setup sudo to allow a user to run the shutdown command.
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 10:20 PM
05-19-2005 10:20 PM
Re: server shutdown
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 11:44 PM
05-19-2005 11:44 PM
Re: server shutdown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 11:46 PM
05-19-2005 11:46 PM
Re: server shutdown
U Can use the sudo command to assign a user to run the shutdown command
Regards
Pravin S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2005 05:12 PM
05-20-2005 05:12 PM
Re: server shutdown
Yes Sudo is best, even you can defined in script Oracle database shutdown/startup.
Ansari