HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- samba monitor restart script
Operating System - HP-UX
1827871
Members
1215
Online
109969
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-18-2005 07:25 AM
10-18-2005 07:25 AM
samba monitor restart script
hi all
is there any samba check/restart script that i can put into crontab. one morning i came in and samba was down and it caused mischief. is there any samba check/start/restart script out there that i can just put into cron fro hpux
thx in advance
is there any samba check/restart script that i can put into crontab. one morning i came in and samba was down and it caused mischief. is there any samba check/start/restart script out there that i can just put into cron fro hpux
thx in advance
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 07:33 AM
10-18-2005 07:33 AM
Re: samba monitor restart script
[ -z "`ps -ef |grep -v grep |grep smbd`" ] && /sbin/init.d/samba start
[ -z "`ps -ef |grep -v grep |grep nmbd`" ] && /sbin/init.d/samba start
[ -z "`ps -ef |grep -v grep |grep nmbd`" ] && /sbin/init.d/samba start
" I may not be certified, but I am certifiable... "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 07:39 AM
10-18-2005 07:39 AM
Re: samba monitor restart script
this is actually better...
#!/usr/bin/ksh
if [ -z "`ps -ef |grep -v grep |grep smbd`" ] ;then
/sbin/init.d/samba stop
/sbin/init.d/samba start
elif [ -z "`ps -ef |grep -v grep |grep nmbd`" ] ;then
/sbin/init.d/samba stop
/sbin/init.d/samba start
fi
#!/usr/bin/ksh
if [ -z "`ps -ef |grep -v grep |grep smbd`" ] ;then
/sbin/init.d/samba stop
/sbin/init.d/samba start
elif [ -z "`ps -ef |grep -v grep |grep nmbd`" ] ;then
/sbin/init.d/samba stop
/sbin/init.d/samba start
fi
" I may not be certified, but I am certifiable... "
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP