~ubuntu-branches/ubuntu/maverick/samba/maverick

94 by Steve Langasek
* Switch smbd and nmbd over to upstart jobs, to ensure nmbd starts reliably
1
description "SMB/CIFS File Server"
2
author      "Steve Langasek <steve.langasek@ubuntu.com>"
3
4
start on local-filesystems
5
stop on runlevel [!2345]
6
7
respawn
8
9
pre-start script
10
	RUN_MODE="daemons"
11
12
	[ -r /etc/default/samba ] && . /etc/default/samba
13
14
	[ "$RUN_MODE" = inetd ] && { stop; exit 0; }
15
16
	install -o root -g root -m 755 -d /var/run/samba
17
end script
18
19
exec smbd -F