Commit 6c51d742 authored by Mike Hibler's avatar Mike Hibler

Samba pid file has moved in more recent samba.

parent a0e26972
......@@ -61,7 +61,11 @@ if (defined($opts{'S'})) {
$exportsback = "$etcdir/smb.conf.backup";
$exportshead = "$etcdir/smb.conf.head";
$exportstail = "$etcdir/smb.conf.tail";
$pidfile = "/var/run/smbd.pid";
if (-d "/var/run/samba") {
$pidfile = "/var/run/samba/smbd.pid";
} else {
$pidfile = "/var/run/smbd.pid";
}
$daemon = "smbd";
}
else {
......
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