Hello,
I don't understand how the startup/stop script works
# cat /etc/rc.d/opensearch
#!/bin/ksh
daemon="/usr/local/opensearch/bin/opensearch"
daemon_flags="-d -p /var/run/opensearch/opensearch.pid"
daemon_user="_opensearch"
. /etc/rc.d/rc.subr
pexp="$(/usr/local/bin/javaPathHelper -c opensearch)
.*org.opensearch.bootstrap.OpenSearch.*"
rc_reload=NO
rc_pre() {
install -d -o _opensearch /var/run/opensearch/
}
rc_cmd $1
I can confirm that the pid I see in /var/run/opensearch/opensearch.pid is the
same I see in ps ax | grep opensearch
However when I want to stop the process
# /etc/rc.d/opensearch stop
Nothing happens
And I don't understand how this stop command would do something like that
# kill -15 `cat /var/run/opensearch/opensearch.pid`
Thank you