- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Samba adding to runlevel and configuration
Operating System - HP-UX
1753696
Members
5779
Online
108799
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
Discussions
Discussions
Forums
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
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
тАО02-26-2002 11:05 PM
тАО02-26-2002 11:05 PM
Samba adding to runlevel and configuration
hi
I installed samba which I got from hpux porting center of utah.edu on a hpux11.0.
I have experience in configuring samba on a linux box.
I want to add samba it to the 3rd runlevel. I found no startup scripts for samba.
thanks for your time and hints
cheers
Umapathy
I installed samba which I got from hpux porting center of utah.edu on a hpux11.0.
I have experience in configuring samba on a linux box.
I want to add samba it to the 3rd runlevel. I found no startup scripts for samba.
thanks for your time and hints
cheers
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2002 11:25 PM
тАО02-26-2002 11:25 PM
Re: Samba adding to runlevel and configuration
Hi,
Check the attached file, which give you a discription on configuration of Samba. Its very simple. I have also attached the startup scripts. After adding it you can create a link for running it in the 3rd run level.
Hope this helps...
Cheers & Regards,
Dayanand Naik.
Check the attached file, which give you a discription on configuration of Samba. Its very simple. I have also attached the startup scripts. After adding it you can create a link for running it in the 3rd run level.
Hope this helps...
Cheers & Regards,
Dayanand Naik.
Dayanand Naik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2002 11:42 PM
тАО02-26-2002 11:42 PM
Re: Samba adding to runlevel and configuration
hi.
1. creat samba start/stop script /sbin/init.d
ex) vi /sbin/init.d/samba
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
rval=0
set_return() {
x=$?
if [ $x -ne 0 ]; then
echo "ERROR CODE $x"
rval=1
fi
}
case $1 in
start_msg)
echo "Start samba daemon"
;;
stop_msg)
echo "Stopping samba daemon"
;;
'start')
/opt/samba/bin/smbd -D
/opt/samba/bin/nmdb -D
rval=2
;;
'stop')
pid=`ps -ef|grep smbd|awk '{print $2}'`
pid2=`ps -ef|grep nmbd|awk '{print $2}'`
kill -9 $pid $pid2
*)
echo "usage: $0 {start|stop}"
;;
esac
exit $rval
2. link
ln -s /sbin/init.d/samba /sbin/rc3.d/S900samba
sorry. I little speak English..
have a nice day...
1. creat samba start/stop script /sbin/init.d
ex) vi /sbin/init.d/samba
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
rval=0
set_return() {
x=$?
if [ $x -ne 0 ]; then
echo "ERROR CODE $x"
rval=1
fi
}
case $1 in
start_msg)
echo "Start samba daemon"
;;
stop_msg)
echo "Stopping samba daemon"
;;
'start')
/opt/samba/bin/smbd -D
/opt/samba/bin/nmdb -D
rval=2
;;
'stop')
pid=`ps -ef|grep smbd|awk '{print $2}'`
pid2=`ps -ef|grep nmbd|awk '{print $2}'`
kill -9 $pid $pid2
*)
echo "usage: $0 {start|stop}"
;;
esac
exit $rval
2. link
ln -s /sbin/init.d/samba /sbin/rc3.d/S900samba
sorry. I little speak English..
have a nice day...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2002 12:14 AM
тАО02-27-2002 12:14 AM
Re: Samba adding to runlevel and configuration
Hi,
You should only run the samba startup
from your last run-level. This can be
found in your /etc/inittab file on the
first line. So if your default run
level is 4 the startup script should
be /sbin/rc.4.d and the shutdown in
/sbin/rc3.d
-Michael
You should only run the samba startup
from your last run-level. This can be
found in your /etc/inittab file on the
first line. So if your default run
level is 4 the startup script should
be /sbin/rc.4.d and the shutdown in
/sbin/rc3.d
-Michael
Anyone for a Mutiny ?
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP