- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Temporily disable service
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
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
12-29-2005 09:12 PM
12-29-2005 09:12 PM
Temporily disable service
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2005 09:14 PM
12-29-2005 09:14 PM
Re: Temporily disable service
Put i in the crontab
#Stop every day at 12:00
0 12 * * * vfstp stop
#Start every day at 13:00
0 13 * * * vsftp start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2005 09:47 PM
12-29-2005 09:47 PM
Re: Temporily disable service
As the reply mentioned you can easily manage
it from crontab. As your need 12:00-13:00
then;
0 12 * * * /sbin/init.d/service stop
0 13 * * * /sbin/init.d/service start
Good Luck &Happy New YeaR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 12:56 AM
12-30-2005 12:56 AM
Re: Temporily disable service
Since I don't use vftpd I cannot tell
if it supports this, but its docs will surely tell you (maybe even comments in its major config file).
With servers that are started via inetd it's a bit different (like e.g. remshd, is it that what you meant when mentioning rsh?).
You could either set up a cronjob that comments such a service in inetd.conf and afterwards inititiates a reconfiguration restart (e.g. /usr/sbin/inetd -c).
But probably a better option would be to use a tcpwrapper or similar filter.
But again, since I don't use a tcpwrapper on HP-UX I cannot tell what features it offers.
From e.g. Linux xinetd I know that you can configure time restricted access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 05:37 PM
12-30-2005 05:37 PM
Re: Temporily disable service
Hi,
You can also make script containing the command lines for starting/stopping the required services and make a single crontab entry to run THIS script at your required TIME.
This may give you a flexiblity of editing the script to make any changes in the services to be started/stopped.
With Regards,
Siva.