|
Lines 207-219
Link Here
|
| 207 |
|
207 |
|
| 208 |
stop_conflicting_services() { |
208 |
stop_conflicting_services() { |
| 209 |
## stop samba3 services and heimdal-kdc if present |
209 |
## stop samba3 services and heimdal-kdc if present |
| 210 |
if [ -x /etc/init.d/samba ]; then |
|
|
| 211 |
if [ -n "$(pgrep -f '/usr/sbin/(smbd|nmbd)')" ]; then |
| 212 |
/etc/init.d/samba stop |
| 213 |
## the smbd init script might refuse to run if it detects ADDC config in smb.conf |
| 214 |
start-stop-daemon --stop --quiet --retry 2 --exec /usr/sbin/smbd |
| 215 |
fi |
| 216 |
fi |
| 217 |
if [ -x /etc/init.d/winbind ]; then |
210 |
if [ -x /etc/init.d/winbind ]; then |
| 218 |
if [ -n "$(pgrep -xf /usr/sbin/winbindd)" ]; then |
211 |
if [ -n "$(pgrep -xf /usr/sbin/winbindd)" ]; then |
| 219 |
/etc/init.d/winbind stop |
212 |
/etc/init.d/winbind stop |
|
Lines 221-226
Link Here
|
| 221 |
start-stop-daemon --stop --quiet --retry 2 --exec /usr/sbin/winbindd |
214 |
start-stop-daemon --stop --quiet --retry 2 --exec /usr/sbin/winbindd |
| 222 |
fi |
215 |
fi |
| 223 |
fi |
216 |
fi |
|
|
217 |
if [ -x /etc/init.d/samba ]; then |
| 218 |
if [ -n "$(pgrep -f '/usr/sbin/(smbd|nmbd)')" ]; then |
| 219 |
/etc/init.d/samba stop |
| 220 |
## the smbd init script might refuse to run if it detects ADDC config in smb.conf |
| 221 |
start-stop-daemon --stop --quiet --retry 2 --exec /usr/sbin/smbd |
| 222 |
fi |
| 223 |
fi |
| 224 |
if [ -x /etc/init.d/heimdal-kdc ]; then |
224 |
if [ -x /etc/init.d/heimdal-kdc ]; then |
| 225 |
if [ -n "$(pgrep -f '/usr/lib/heimdal-servers/(kdc|kpasswdd)')" ]; then |
225 |
if [ -n "$(pgrep -f '/usr/lib/heimdal-servers/(kdc|kpasswdd)')" ]; then |
| 226 |
/etc/init.d/heimdal-kdc stop |
226 |
/etc/init.d/heimdal-kdc stop |