Hallo your problem is in conf... Location of pid files is conf parameter not cmd line... in global students try pid directory = /var/run2/
----- Original Message ----- From: "Steve Morley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 22, 2002 8:25 PM Subject: [Samba] SAMBA doesn't like me anymore :( > Hi All, > > Okay, SAMBA officially doesn't like me or something. > > Here's the poop: > > - Brand-new FreeBSD 4.7 box > - SAMBA 2.2.6pre2 (built from the ports tree) > - I have dual NICs, one on 192.168.1 (students) the other on 192.168.2 (staff) > - I need two operational workgroups "STUDENTS" & "STAFF" each tied to their > own interface. > - This machine needs to do all the authentication stuff, dunno if that > requires it to be a PDC (strictly Win9X machines), and if you can run > two PDC's... > > Yesterday morning I had it launching two seperate instances of smbd and nmbd > at the same time, one for workgroup "STAFF" the other for "STUDENTS". I > started adding more features to smb.conf.staff and smb.conf.students and > somewhere along the way I broke it. I can no longer start up two instances > anymore :( > > This is now desperate for me, I need to swap out the old 2.0.* server this > weekend. One major reason for the upgrade is the dual workgroup setup as it > wasn't supported in 2.0.* . > > I've even gone back to bare bones conf files, but apparently that wasn't > what caused it to stop working in the first place I guess. > > The problem is that it seems to be ignoring the --pidfile directive :( > > Here's my startsamba script: > > #!/usr/local/bin/bash > > /usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf.staff > /usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf.staff > > /usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf.students --pidfile /var/run2/smbd.pid > /usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf.students --pidfile /var/run2/smbd.pid > > > The first set places the .pid files in /var/run which has > drwxr-xr-x 3 root wheel > > so I created /var/run2 with the same permissions. > > Again, this worked for the better part of a day yesterday... > > My (now) minimal conf files are: > > > [global] > > workgroup = STAFF > > hosts allow = 192.168.2 127. > > interfaces = 192.168.2.200/24 > > > > [homes] > > comment = "Home Directory of %u" > > guest ok = no > > read only = no > > browseable = no > > writeable = yes > > Only difference is the workgroup = STUDENTS and the IP stuff for their .conf > file. > > log.smbd reads: > > > [2002/11/22 10:58:09, 0] smbd/server.c:main(707) > > smbd version 2.2.6pre2 started. > > Copyright Andrew Tridgell and the Samba Team 1992-2002 > > [2002/11/22 10:58:09, 0] smbd/server.c:main(707) > > smbd version 2.2.6pre2 started. > > Copyright Andrew Tridgell and the Samba Team 1992-2002 > > [2002/11/22 10:58:09, 0] lib/pidfile.c:pidfile_create(86) > > ERROR: smbd is already running. File /var/run/smbd.pid exists and process id 406 is running. > > log.nmbd reads: > > > [2002/11/22 10:58:09, 0] nmbd/nmbd.c:main(794) > > Netbios nameserver version 2.2.6pre2 started. > > Copyright Andrew Tridgell and the Samba Team 1994-2002 > > [2002/11/22 10:58:09, 0] nmbd/nmbd.c:main(794) > > Netbios nameserver version 2.2.6pre2 started. > > Copyright Andrew Tridgell and the Samba Team 1994-2002 > > [2002/11/22 10:58:09, 0] lib/pidfile.c:pidfile_create(86) > > ERROR: nmbd is already running. File /var/run/nmbd.pid exists and process id 408 is running. > > > So obviously for some reason it's now ignoring the --pidfile directive and > trying to dump it into the default locaction of /var/run ... > > Again, I had these two running simultaneously yesterday, but when I was > stumped with the trust stuff (moving up from 2.0.* which as I recall didn't > have them) I must have done something stupid to break it :( > > help? > > Steve > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
