source: npl/commonservers/openldap_conf/root/service/slapd/start

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 355 bytes
Line 
1#!/bin/bash
2TRY=15
3svc -u /service/slapd
4while ! ldapwhoami -x -h 127.0.0.1 &>/dev/null; do
5    echo "Waiting for slapd to start.. ($TRY)"
6    sleep 5
7    (( TRY-- ))
8    if [ $TRY -eq 0 ]; then
9                syn3-state slapd CAUTION "Startup error"
10                svc -d /service/slapd
11                exit 1
12    fi
13done
14syn3-state slapd OK "Started"
Note: See TracBrowser for help on using the repository browser.