summaryrefslogtreecommitdiff
blob: 45c2a6c2c7d44719782a8fc2251c49221290ecfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# Script that starts the ns-slapd server.
# Exit status can be:
#       0: Server started successfully
#       1: Server could not be started
#       2: Server already running

rc-config stop 389-ds
rc-config start 389-ds
rc="${?}"
# give the daemon a chance to start
sleep 8
exit "${rc:-1}"