Commit 43011ce7 authored by Mike Hibler's avatar Mike Hibler

Try harder to figure out the correct pid file for smbd.

(cherry picked from commit f4d15c93)
parent 1cf2cd79
#!/usr/bin/perl -wT
#
# Copyright (c) 2000-2012 University of Utah and the Flux Group.
# Copyright (c) 2000-2013 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -61,10 +61,12 @@ if (defined($opts{'S'})) {
$exportsback = "$etcdir/smb.conf.backup";
$exportshead = "$etcdir/smb.conf.head";
$exportstail = "$etcdir/smb.conf.tail";
if (-d "/var/run/samba") {
if (-r "/var/run/samba/smbd.pid") {
$pidfile = "/var/run/samba/smbd.pid";
} else {
} elsif (-r "/var/run/smbd.pid") {
$pidfile = "/var/run/smbd.pid";
} else {
fatal("Cannot locate pidfile for smbd\n");
}
$daemon = "smbd";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment