- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Samba setup under HP-UX
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
06-26-2003 12:23 AM
06-26-2003 12:23 AM
Samba setup under HP-UX
I followed the posts regarding Samba and would like to say that samba has to be started with starting of two deamons:
smbd -D
nmbd -D
My questions is where do I do that during startup? Can I include these two commands in a rc-file and if yes in which one?
TIA,
Marco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2003 12:34 AM
06-26-2003 12:34 AM
Re: Samba setup under HP-UX
I have currently got my SAMBA starting in /sbin/rc2.d with the following script:
#!/sbin/sh
#
# samba startup: Startup and kill script for SAMBA
#
PATH=/sbin:/usr/sbin:/usr/bin:/opt/samba/bin
export PATH
if [ -r /etc/rc.config.d/samba ]
then . /etc/rc.config.d/samba
fi
case "$1" in
"start_msg") echo "Starting SAMBA Server" ;;
"start") if [ "$RUN_SAMBA" -ne 0 ]
then
startsmb && exit 0
exit 1
fi
exit 2 ;;
"stop_msg") echo "Shutting down the SAMBA Server" ;;
"stop") if [ "$RUN_SAMBA" -ne 0 ]
then
stopsmb
exit 0
fi
stopsmb > /dev/null 2>&1
exit 2 ;;
esac
exit 0;
This is the script which is in /sbin/init.d and then linked to S900samba in /sbin/rc2.d
Hope this helps
Kev
"I'd rather be flying"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2003 12:35 AM
06-26-2003 12:35 AM
Re: Samba setup under HP-UX
#!/sbin/sh
#
# samba startup: Startup and kill script for SAMBA
#
PATH=/sbin:/usr/sbin:/usr/bin:/opt/samba/bin
export PATH
if [ -r /etc/rc.config.d/samba ]
then . /etc/rc.config.d/samba
fi
case "$1" in
"start_msg") echo "Starting SAMBA Server" ;;
"start") if [ "$RUN_SAMBA" -ne 0 ]
then
startsmb && exit 0
exit 1
fi
exit 2 ;;
"stop_msg") echo "Shutting down the SAMBA Server" ;;
"stop") if [ "$RUN_SAMBA" -ne 0 ]
then
stopsmb
exit 0
fi
stopsmb > /dev/null 2>&1
exit 2 ;;
esac
exit 0;
and create this links
lrwxr-xr-x 1 root sys 18 Nov 4 2002 K130samba -> /sbin/init.d/samba
lrwxr-xr-x 1 root sys 18 Mar 24 10:03 S900samba -> /sbin/init.d/samba
Regards
Raine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2003 12:46 AM
06-26-2003 12:46 AM
Re: Samba setup under HP-UX
create a file /etc/rc.config.d/samba
and put
RUN_SAMBA=1
into it
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2003 01:23 AM
06-26-2003 01:23 AM
Re: Samba setup under HP-UX
You can also manually run it by:
#/opt/samba/bin/stopsmb
#/opt/samba/bin/startsmb
-ux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2003 03:18 AM
06-26-2003 03:18 AM
Re: Samba setup under HP-UX
The package of samba came with startup scripts
for the deamons so check in the directory that
you install for the scripts of start/stop smb
Caesar