On 2024/01/04 19:44:01 +, Mik J wrote:
> [...]
> I still have a question Omar, you wrote that the pexp content would be matched
> "the daemon is found by looking for a process matching that pexp and killing
> it."
>
> Here I have
> pexp="$(/usr/local/bin/javaPathHelper -c opensearch)
> .*or
Hello Mike, Omar, Stuart,
Thank you for your answers, I've learnt a lot through these.
It seems that my problem was due to the fact that I added this variable in my
/root/.profile
export JAVA_HOME=/usr/local/jdk-11/
# cat /var/run/rc.d/opensearch
was then showing a double slash
pexp=/usr/local/
On 2024-01-03, Mik J wrote:
> Hello,
>
> I don't understand how the startup/stop script works
It uses the string from pexp (as it was when the daemon was _started_;
changes to the rc script after startup are ignored) with pgrep(1) -xf to
identify the running process (and pkill -xf to actually sig
On 2024-01-04, Mike Fischer wrote:
>
>> Am 04.01.2024 um 00:06 schrieb Mik J :
>>
>> However when I want to stop the process
>> # /etc/rc.d/opensearch stop
>> Nothing happens
>
> try:
> # rcctl stop opensearch
>
> You are not supposed to ever call the /etc/rc.d/* scripts directly.
no, that's fin
On 2024/01/03 23:06:57 +, Mik J wrote:
> 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"
>
> .
> Am 04.01.2024 um 00:06 schrieb Mik J :
>
> However when I want to stop the process
> # /etc/rc.d/opensearch stop
> Nothing happens
try:
# rcctl stop opensearch
You are not supposed to ever call the /etc/rc.d/* scripts directly.
HTH
Mike
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 opensea
7 matches
Mail list logo