12-08-2013 11:06 PM - edited 03-01-2019 09:06 AM
Hi all,
Do you guys have an idea on how to auto-start the service of tidal agent in linux? Thanks!
12-09-2013 08:09 AM
Completely depends on the flavor of linux. The scripts that start on boot are different everywhere. What distro/version are you running?
12-09-2013 05:11 PM
I'm using RHEL server release 6.3 Beta.
12-10-2013 12:23 PM
From google it looks like you can put the start command in /etc/rc.d/rc.local , but I would check with your linux admin before putting anything in the file as the server could have problems properly booting, depending on the mistake.
12-12-2013 09:32 AM
Yup, this is ours (on RHEL 6):
Add the following command to the rc.local file
su - admiral -c "/opt/app/tidal/bin/tagent -start"
12-12-2013 12:42 PM
You may want to write a wrapper shell script to call the tagent -start command.
This would allow you to trap errors, write them to a log file without halting the server startup and allow for multiple retry attempts.
Also, if you don't use the default user or PATH, obviously those need to be updated accordingly.
su - ${tes_admin_user} -c "${PATH_TO_AGENT_BIN}/tagent -start"
12-14-2013 01:58 AM
Thanks guys for the inputs.
It is now working, this is what I did:
I created "mystartup.sh" at etc/rc.d/init.d with this script inside:
#!/bin/bash
/opt/TIDAL/Agent/bin/tagent TIDALAGENT1 start
#author: Lodz
#chkconfig: 345 25 75
#description: tidal agent auto startup
then i added the shell script on boot using this commands:
# chkconfig --add mystartup.sh
# chkconfig mystratup.sh on
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide