smbd.conf needs to wait for network up event
Bug #740777 reported by
Egon A. Rath
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
In Progress
|
Medium
|
Clint Byrum |
Bug Description
Binary package hint: samba
The upstart script smb.conf should not only wait for the local-filesystems event, but also for the network up event (like its done for the nmbd.conf file which is also part of the samba package).
Changed in samba (Ubuntu): | |
assignee: | nobody → Clint Byrum (clint-fewbar) |
importance: | Undecided → Medium |
To post a comment you must log in.
File in question is /etc/init/ smbd.conf.
Original: <<<<<<< <<<<<<< <<<<<<< <<<<<<< <<<<<<<
<<<<<<<
description "SMB/CIFS File Server"
author "Steve Langasek <email address hidden>"
start on local-filesystems
stop on runlevel [!2345]
respawn
pre-start script
RUN_MODE= "daemons"
[ -r /etc/default/samba ] && . /etc/default/samba
[ "$RUN_MODE" = inetd ] && { stop; exit 0; }
install -o root -g root -m 755 -d /var/run/samba
end script
exec smbd -F <<<<<<< <<<<<<< <<<<<<< <<<<<<< <<<<<<<
<<<<<<<
Modified as it should be: <<<<<<< <<<<<<< <<<<<<< <<<<<<< <<<<<<<
<<<<<<<
description "SMB/CIFS File Server"
author "Steve Langasek <email address hidden>"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]
respawn
pre-start script
RUN_MODE= "daemons"
[ -r /etc/default/samba ] && . /etc/default/samba
[ "$RUN_MODE" = inetd ] && { stop; exit 0; }
install -o root -g root -m 755 -d /var/run/samba
end script
exec smbd -F <<<<<<< <<<<<<< <<<<<<< <<<<<<< <<<<<<<
<<<<<<<