Re: [E] Re: Cassandra tarball install and systemd

2022-02-09 Thread Saha, Sushanta K
Thanks Aaron! Appreciate it.

 Sushanta


On Wed, Feb 9, 2022 at 11:13 AM Aaron Ploetz  wrote:

> > I am starting Cassandra with $CASSANDRA_HOME/bin/cassandra
>
> When starting Cassandra, it accepts a PID file location with the -p flag:
>
> $CASSANDRA_HOME/bin/cassandra -p /var/run/cassandra/cassandra.pid
>
> Start Cassandra with that, and then the PID file will be there.  Assuming
> of course, that the user starting Cassandra has access to
> /var/run/casandra/.
>
> Aaron
>
>
> On Wed, Feb 9, 2022 at 9:53 AM Bowen Song  wrote:
>
>> Isn't the /etc/init.d/cassandra script supposed to create the PID file if
>> it doesn't exist? See:
>> https://github.com/apache/cassandra/blob/cb1c8f9d34edfa639096d2d122dfd0ee6d23b479/debian/init#L83
>> 
>>
>>
>> On 09/02/2022 15:17, Saha, Sushanta K wrote:
>>
>> I picked up the script */etc/init.d/cassandra* from the net. Not sure if
>> tarball installation includes such a script. It should.
>>
>> This script is using the following line:
>> *pid_file=/var/run/cassandra/cassandra.pid*
>>
>> But, there is no such *.pid* file that I can find. I am starting
>> Cassandra with $CASSANDRA_HOME/bin/cassandra.
>>
>> Appreciate any pointer for this auto stop and start of Cassandra.
>>
>> Thanks & Regards
>>  Sushanta
>>
>> --
>>
>> *Sushanta Saha|*MTS IV-Cslt-Sys Engrg|WebIaaS_DB Group|HQ -
>> * VerizonWireless O 770.797.1260  C 770.714.6555 Iaas Support Line
>> 949-286-8810*
>>
>>

-- 

*Sushanta Saha|*MTS IV-Cslt-Sys Engrg|WebIaaS_DB Group|HQ -
* VerizonWireless O 770.797.1260  C 770.714.6555 Iaas Support Line
949-286-8810*


Re: Cassandra tarball install and systemd

2022-02-09 Thread Aaron Ploetz
> I am starting Cassandra with $CASSANDRA_HOME/bin/cassandra

When starting Cassandra, it accepts a PID file location with the -p flag:

$CASSANDRA_HOME/bin/cassandra -p /var/run/cassandra/cassandra.pid

Start Cassandra with that, and then the PID file will be there.  Assuming
of course, that the user starting Cassandra has access to /var/run/casandra/
.

Aaron


On Wed, Feb 9, 2022 at 9:53 AM Bowen Song  wrote:

> Isn't the /etc/init.d/cassandra script supposed to create the PID file if
> it doesn't exist? See:
> https://github.com/apache/cassandra/blob/cb1c8f9d34edfa639096d2d122dfd0ee6d23b479/debian/init#L83
>
>
> On 09/02/2022 15:17, Saha, Sushanta K wrote:
>
> I picked up the script */etc/init.d/cassandra* from the net. Not sure if
> tarball installation includes such a script. It should.
>
> This script is using the following line:
> *pid_file=/var/run/cassandra/cassandra.pid*
>
> But, there is no such *.pid* file that I can find. I am starting
> Cassandra with $CASSANDRA_HOME/bin/cassandra.
>
> Appreciate any pointer for this auto stop and start of Cassandra.
>
> Thanks & Regards
>  Sushanta
>
> --
>
> *Sushanta Saha|*MTS IV-Cslt-Sys Engrg|WebIaaS_DB Group|HQ -
> * VerizonWireless O 770.797.1260  C 770.714.6555 Iaas Support Line
> 949-286-8810*
>
>


Re: Cassandra tarball install and systemd

2022-02-09 Thread Bowen Song
Isn't the /etc/init.d/cassandra script supposed to create the PID file 
if it doesn't exist? See: 
https://github.com/apache/cassandra/blob/cb1c8f9d34edfa639096d2d122dfd0ee6d23b479/debian/init#L83



On 09/02/2022 15:17, Saha, Sushanta K wrote:
I picked up the script */etc/init.d/cassandra* from the net. Not sure 
if tarball installation includes such a script. It should.


This script is using the following line:
*pid_file=/var/run/cassandra/cassandra.pid*

But, there is no such *.pid* file that I can find. I am starting 
Cassandra with $CASSANDRA_HOME/bin/cassandra.


Appreciate any pointer for this auto stop and start of Cassandra.

Thanks & Regards
 Sushanta

--

*Sushanta Saha|*MTS IV-Cslt-Sys Engrg|WebIaaS_DB Group|HQ 
-*VerizonWireless

O 770.797.1260 C 770.714.6555 Iaas Support Line949-286-8810*


Cassandra tarball install and systemd

2022-02-09 Thread Saha, Sushanta K
I picked up the script */etc/init.d/cassandra* from the net. Not sure if
tarball installation includes such a script. It should.

This script is using the following line:
*pid_file=/var/run/cassandra/cassandra.pid*

But, there is no such *.pid* file that I can find. I am starting Cassandra
with $CASSANDRA_HOME/bin/cassandra.

Appreciate any pointer for this auto stop and start of Cassandra.

Thanks & Regards
 Sushanta

-- 

*Sushanta Saha|*MTS IV-Cslt-Sys Engrg|WebIaaS_DB Group|HQ -
* VerizonWireless O 770.797.1260  C 770.714.6555 Iaas Support Line
949-286-8810*