AppD Archive

Machine Agent startup script

CommunityUser
Splunk Employee
Splunk Employee

Dear Team,

Please get me a startup script for "Machine Agent" for Linux.
.

I have tried giving "java -jar <MACHINE_AGENT_HOME>/machineagent.jar" but once i close the window, Machine agent is getting stopped automatically.

Request to provide a script which keeps Machine Agent running even though if I close the Window.

Thanks.

Kind Regards,

Zia

0 Karma

Arun_Dasetty
Super Champion

Hi Zia,

One way to run machine agent as background java process is:

shell> nohup java -jar <machienagent_dir>/machienagent.jar &

Other alternative is to add add above similar command in sh file and add the .sh file path in /etc/rc/local similar path to run on startup of machine, Hope that information helps

Regards,

Arun

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...