~upstart-devel/upstart/upstart-jobs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
description "Samba Winbind"
author      "David Weber"

start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]

respawn

pre-start script
	test -x /usr/sbin/winbindd || exit 0
	mkdir -p /var/run/samba/winbindd_privileged
	chgrp winbindd_priv /var/run/samba/winbindd_privileged
	chmod 0750 /var/run/samba/winbindd_privileged
end script

script
    [ -r /etc/default/winbind ] && . /etc/default/winbind
    exec /usr/sbin/winbindd -F $WINBINDD_OPTS
end script