Lines 226-232
if [ -z "$DCNAME" ]; then
|
Link Here
|
---|
|
226 |
echo -e "\033[60Gdone" |
226 |
echo -e "\033[60Gdone" |
227 |
echo "domain $domainname" >/etc/resolv.conf |
227 |
echo "domain $domainname" >/etc/resolv.conf |
228 |
echo "nameserver $i" >>/etc/resolv.conf |
228 |
echo "nameserver $i" >>/etc/resolv.conf |
229 |
test -x /etc/init.d/nscd && /etc/init.d/nscd restart >>/var/log/univention/join.log 2>&1 |
229 |
test -x /etc/init.d/nscd && invoke-rc.d nscd restart >>/var/log/univention/join.log 2>&1 |
230 |
break |
230 |
break |
231 |
fi |
231 |
fi |
232 |
done |
232 |
done |
Lines 255-267
echo -e "\033[60Gdone"
|
Link Here
|
---|
|
255 |
|
255 |
|
256 |
if [ -x /etc/init.d/slapd ]; then |
256 |
if [ -x /etc/init.d/slapd ]; then |
257 |
echo -n "Stop LDAP Server: " |
257 |
echo -n "Stop LDAP Server: " |
258 |
/etc/init.d/slapd stop >>/var/log/univention/join.log 2>&1 |
258 |
invoke-rc.d slapd stop >>/var/log/univention/join.log 2>&1 |
259 |
echo -e "\033[60Gdone" |
259 |
echo -e "\033[60Gdone" |
260 |
fi |
260 |
fi |
261 |
|
261 |
|
262 |
if [ -x /etc/init.d/samba4 ]; then |
262 |
if [ -x /etc/init.d/samba4 ]; then |
263 |
echo -n "Stop Samba 4 Server: " |
263 |
echo -n "Stop Samba 4 Server: " |
264 |
/etc/init.d/samba4 stop >>/var/log/univention/join.log 2>&1 |
264 |
invoke-rc.d samba4 stop >>/var/log/univention/join.log 2>&1 |
265 |
echo -e "\033[60Gdone" |
265 |
echo -e "\033[60Gdone" |
266 |
fi |
266 |
fi |
267 |
|
267 |
|
|
282 |
|
282 |
|
283 |
if [ -x /etc/init.d/slapd ]; then |
283 |
if [ -x /etc/init.d/slapd ]; then |
284 |
echo -n "Start LDAP Server: " |
284 |
echo -n "Start LDAP Server: " |
285 |
/etc/init.d/slapd start >>/var/log/univention/join.log 2>&1 |
285 |
invoke-rc.d slapd start >>/var/log/univention/join.log 2>&1 |
286 |
echo -e "\033[60Gdone" |
286 |
echo -e "\033[60Gdone" |
287 |
fi |
287 |
fi |
288 |
|
288 |
|
|
420 |
notifier_pid=`pidof univention-directory-notifier` |
420 |
notifier_pid=`pidof univention-directory-notifier` |
421 |
if [ -n "$notifier_pid" -a -e /etc/runit/univention/univention-directory-notifier ]; then |
421 |
if [ -n "$notifier_pid" -a -e /etc/runit/univention/univention-directory-notifier ]; then |
422 |
echo -n "Stopping univention-directory-notifier daemon: " |
422 |
echo -n "Stopping univention-directory-notifier daemon: " |
423 |
/etc/init.d/univention-directory-notifier stop >/dev/null 2>&1 |
423 |
invoke-rc.d univention-directory-notifier stop >/dev/null 2>&1 |
424 |
while ! sv status univention-directory-notifier | grep "^down" >/dev/null ; do sleep 1; /etc/init.d/univention-directory-notifier stop >/dev/null 2>&1; echo -n "." ;done; echo "" done |
424 |
while ! sv status univention-directory-notifier | grep "^down" >/dev/null ; do sleep 1; invoke-rc.d univention-directory-notifier stop >/dev/null 2>&1; echo -n "." ;done; echo "" done |
425 |
fi |
425 |
fi |
426 |
|
426 |
|
427 |
# Stop Listener |
427 |
# Stop Listener |
428 |
listener_pid=`pidof univention-directory-listener` |
428 |
listener_pid=`pidof univention-directory-listener` |
429 |
if [ -e /etc/runit/univention/univention-directory-listener ]; then |
429 |
if [ -e /etc/runit/univention/univention-directory-listener ]; then |
430 |
echo -n "Stopping univention-directory-listener daemon: " |
430 |
echo -n "Stopping univention-directory-listener daemon: " |
431 |
/etc/init.d/univention-directory-listener stop >/dev/null 2>&1 |
431 |
invoke-rc.d univention-directory-listener stop >/dev/null 2>&1 |
432 |
while ! sv status univention-directory-listener | grep "^down" >/dev/null ; do sleep 1; /etc/init.d/univention-directory-listener stop >/dev/null 2>&1; echo -n "." ;done; echo "" done |
432 |
while ! sv status univention-directory-listener | grep "^down" >/dev/null ; do sleep 1; invoke-rc.d univention-directory-listener stop >/dev/null 2>&1; echo -n "." ;done; echo "" done |
433 |
fi |
433 |
fi |
434 |
rm -Rf /var/lib/univention-directory-listener/* |
434 |
rm -Rf /var/lib/univention-directory-listener/* |
435 |
|
435 |
|
Lines 503-509
if [ "$server_role" = "domaincontroller_backup" ]; then
|
Link Here
|
---|
|
503 |
echo -e "\033[60Gdone" |
503 |
echo -e "\033[60Gdone" |
504 |
|
504 |
|
505 |
echo -n "Restart LDAP Server: " |
505 |
echo -n "Restart LDAP Server: " |
506 |
/etc/init.d/slapd restart >>/var/log/univention/join.log 2>&1 |
506 |
invoke-rc.d slapd restart >>/var/log/univention/join.log 2>&1 |
507 |
echo -e "\033[60Gdone" |
507 |
echo -e "\033[60Gdone" |
508 |
|
508 |
|
509 |
#TODO: implement a real sync |
509 |
#TODO: implement a real sync |
Lines 594-600
elif [ "$server_role" = "domaincontroller_slave" ]; then
|
Link Here
|
---|
|
594 |
fi |
594 |
fi |
595 |
|
595 |
|
596 |
echo -n "Restart LDAP Server: " |
596 |
echo -n "Restart LDAP Server: " |
597 |
/etc/init.d/slapd restart >>/var/log/univention/join.log 2>&1 |
597 |
invoke-rc.d slapd restart >>/var/log/univention/join.log 2>&1 |
598 |
echo -e "\033[60Gdone" |
598 |
echo -e "\033[60Gdone" |
599 |
|
599 |
|
600 |
echo -n "Sync Kerberos settings: " |
600 |
echo -n "Sync Kerberos settings: " |
|
737 |
fi |
737 |
fi |
738 |
|
738 |
|
739 |
if [ -d /etc/runit/univention-directory-notifier ]; then |
739 |
if [ -d /etc/runit/univention-directory-notifier ]; then |
740 |
/etc/init.d/univention-directory-notifier restart >>/var/log/univention/join.log 2>&1 |
740 |
invoke-rc.d univention-directory-notifier restart >>/var/log/univention/join.log 2>&1 |
741 |
sleep 3 |
741 |
sleep 3 |
742 |
fi |
742 |
fi |
743 |
|
743 |
|
744 |
if [ -d /etc/runit/univention-directory-listener ]; then |
744 |
if [ -d /etc/runit/univention-directory-listener ]; then |
745 |
/etc/init.d/univention-directory-listener restart >>/var/log/univention/join.log 2>&1 |
745 |
invoke-rc.d univention-directory-listener restart >>/var/log/univention/join.log 2>&1 |
746 |
fi |
746 |
fi |
747 |
|
747 |
|
748 |
if [ -n "$REMOVE_PWD_FILE" -a -n "$DCPWD" ]; then |
748 |
if [ -n "$REMOVE_PWD_FILE" -a -n "$DCPWD" ]; then |