blob: 1c37267c95ebf8b60e2384921918a22d7ad72fd0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
. /etc/sysconfig/boundary
PROGRAM=/usr/bin/boundary
ARGS="server -config=/etc/boundary/controller.hcl $BOUNDARY_CONTROLLER_ARGS"
RUNLEVEL=3
NEEDS="+network"
start() {
echo "Starting $NAME..."
TIMEOUT=3
su boundary -s /bin/sh -c "set -o pipefail; $PROGRAM $ARGS 2>&1 | logger -ip daemon.info -t boundary-controller" &
ppid=$!
sleep $TIMEOUT && pgrep -P $ppid > /dev/null || wait $ppid
evaluate_retval
}
stop() {
echo "Stopping $NAME..."
killproc "boundary server -config=/etc/boundary/controller.hcl" SIGINT
}
. /etc/init.d/smgl_init
|