Samba Server - nmb is dead but pid file exists HELP PLEASE
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As I said, that method shows you every dependency in the whole repository, NOT just what you've installed. Was that the only dependency on samba-common that was shown?
(As you can see from my output, above, the Fedora 19 repositories don't contain any Samba 3 code.)
By the way, since I had that file, I thought that I would find an improved version of the program useful. So here's version 0.2:
Code:
#!/bin/gawk -f
# Parse the diagraph file created by the repo-graph command to create a list of all packages which depend
# on a specific package.
#
# Usage: Change the name in the BEGIN section, below, to contain the package for which you wish to
# list the packages requiring it.
#
###################
# Since this may take some time, here's a "spinner" so you'll know it's running
BEGIN {
spinner[0]="|"
spinner[1]="/"
spinner[2]="-"
spinner[3]="\\"
spinner_counter=3
}
function spin()
{
printf("\b%s",spinner[(++spinner_counter)%4])
}
#################
# Initalization section. Look for a "-s" or "--search=" option
BEGIN {
for (i=1;i< ARGC;++i) {
if (ARGV[i] ~ /-s/) {
requires=gensub(/.*=/,"",1,ARGV[i])
delete ARGV[i]
if ((!requires) && ARGV[i+1]) {
requires=ARGV[++i]
delete ARGV[i]
}
}
}
# Set the default serach term if necessary
if (!requires) requires="samba-common"
# And tell what we're going to do
printf("\nList of all packages requiring \"%s\"\n\n", requires)
}
/ -> {/ {
spin()
name=gensub(/"/,"","g",$1) #"
while (getline) {
if ($0 ~ /^}/ ) break
if ($0 ~ requires) {
cmd="yum deplist " name
while (cmd | getline line) {
spin()
n=split(line,part)
if ((part[1] == "dependency:") && (part[2]==requires)) {
version=((part[4])?part[3] " " part[4]:part[3])
++list[name][part[2]][version]
}
}
close(cmd)
}
}
}
END {
printf("\b")
for (name in list) {
print name
for (need in list[name]) {
for(version in list[name][need]) {
print " " need version
}
}
}
}
For the same repro-graph file, here's what I get for "samba:"
OHhh I see, and yes that was the only dependency that showed up. I will try and run your 0.2 version. I just realized something, the first time I tried jnstalling samba4 for some reason I remember it saying 3.9.9 coming up and then with that script it only has 3.6.9. I think I'm missing something, I will check again. Thanks!
OHhh I see, and yes that was the only dependency that showed up. I will try and run your 0.2 version. I just realized something, the first time I tried jnstalling samba4 for some reason I remember it saying 3.9.9 coming up and then with that script it only has 3.6.9. I think I'm missing something, I will check again. Thanks!
Those errors because I wrote the code for gawk version 4, which supports multidimensional arrays. It might be possible to re-write it for the older version 3. If I can, I'll post it here. (I may take me a while - I've got things I need to do this morning.)
I already figured out what it was, I just had to remove samba-common-3.6.9 and I was able to install Samba4...HOWEVER I encountered the same problem (nbmd is dead but pid file exists) so I removed Samba4 and reinstalled Samba 3.6.9 or whatever version centos has by typing yum install samba and it installed. I messed around with the .conf file (making it local master, WINS server etc.) and now smb has the "is dead but pid file exists" error but nmb doesnt. I put the .conf file back to how it was by default and I am still getting "smb is dead but pid file exists". THIS IS SO WEIRD, its like the opposite just occured.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.