- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cron user on cluster FS
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
01-17-2003 06:40 AM
01-17-2003 06:40 AM
cron user on cluster FS
Now the user oracle runs a script every two hours using cron.
I build a script to check if the package is on the current node, if not --> just exit, If so execute the script. No big deal.
00 * * * * /usr/local/bin/check.sh
But cron complains even before it tries to execute the script. Cron gives the error that the current users homedir is not available and does not execute (sends an e-mail). As the homedirectory from oracle resides on the Cluster Filesystem.
So there will be always an error e-mail generated by cron, even if I would just perform a bdf and redirect it to /dev/null. This is what we just wanted to get rid of.
Does anyone know how to disable this anoying cron check for homdir precense? I cannot imagine there is no-one else there that haven't met the same problem.
Thanks for your help in advance.
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 06:59 AM
01-17-2003 06:59 AM
Re: cron user on cluster FS
couldn't you just create a home directory for the user who needs the cron job to be run in the / filesystem?
How about putting an
rmdir -p /path/to/users/home
(if you don't need it as a mount point for the package's LV)
in the customer_defined_run_cmds()
and a
mkdir -p /path/to/users/home
in the customer_defined_halt_cmds()
functions of the respective package control script,
just to satisfy cron?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 07:13 AM
01-17-2003 07:13 AM
Re: cron user on cluster FS
A home directory for a user is required for his cron to be executed.
One way to get around is creat a cron for root to check if the home dir exists. If so, execute the above script as oracle (using the su command.)
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 07:17 AM
01-17-2003 07:17 AM
Re: cron user on cluster FS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 07:19 AM
01-17-2003 07:19 AM
Re: cron user on cluster FS
e.g.
Home dir is /oracle/home, mountpoint is /oracle.
With /oracle unmounted, mkdir /oracle/home.
That way you have a valid home directory whether /oracle is mounted or not.
Regards,
John