[zones-discuss] Re: Can SAMBA be run in a non-global zone?

2006-10-19 Thread Phil Freund
The blastwave.org Samba distribution doesn't have this issue: its shutdown 
(/etc/init.d/cswsamba stop) uses the pid IDs for smbd, nmbd, and winbindd 
stored in /opt/csw/var/locks/.

A quick FYI on using the blastwave distribution: If you are using sparse zones 
and need to run Samba with winbind, you have to install the Samba packages into 
the global so that the winbind package (CSWsambawb) can add the files to 
/usr/lib. That said, if you don't create a smb.conf file in the global, Samba 
won't start there, so it's not a big issue.

Phil
 
 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Re: Can SAMBA be run in a non-global zone?

2006-10-14 Thread Jeff Victor

Jiri Sasek wrote:

please note: "/etc/init.d/samba stop"  ...SYSVinit command using "pkill smbd ;
pkill nmbd" so such command issued in global zone will kill all Samba's running
in non-global zones!!!

Currently this issue is solved tracking the smbd.pid, nmbd.pid and winbind pid
's by "start method" called from smf(5) samba service (Opensolaris/nv build
>35)


If you know the zonename, you can use

pkill -z  smbd
pkill -z  nmbd

As you might guess, that limits the context of pkill to processes in that zone.

--
Jeff VICTOR  Sun Microsystemsjeff.victor @ sun.com
OS AmbassadorSr. Technical Specialist
Solaris 10 Zones FAQ:http://www.opensolaris.org/os/community/zones/faq
--
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Re: Can SAMBA be run in a non-global zone?

2006-10-13 Thread Mike Gerdts

On 10/13/06, Jiri Sasek <[EMAIL PROTECTED]> wrote:

please note:
"/etc/init.d/samba stop"  ...SYSVinit command using "pkill smbd ; pkill nmbd" 
so such command issued in global zone will kill all Samba's running in non-global zones!!!

Currently this issue is solved tracking the smbd.pid, nmbd.pid and winbind pid 's by 
"start method" called from smf(5) samba service (Opensolaris/nv build >35)


It seems as though this problem is better dealt with using ":kill" in
the stop exec method rather than something that goes looking for PID
files.  PID files were a great idea at one time, but their usefulness
is eclipsed by contracts + SMF.

Mike

--
Mike Gerdts
http://mgerdts.blogspot.com/
___
zones-discuss mailing list
zones-discuss@opensolaris.org


[zones-discuss] Re: Can SAMBA be run in a non-global zone?

2006-10-13 Thread Jiri Sasek
please note:
"/etc/init.d/samba stop"  ...SYSVinit command using "pkill smbd ; pkill nmbd" 
so such command issued in global zone will kill all Samba's running in 
non-global zones!!!

Currently this issue is solved tracking the smbd.pid, nmbd.pid and winbind pid 
's by "start method" called from smf(5) samba service (Opensolaris/nv build >35)
 
 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org