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!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...