Hi Everyone,
I created a run.sh file to run executable jar in Linux.it will working fine.Now i need to this run.sh file run as services.So i created a script as follows,
Code:
#!/bin/sh
. /etc/rc.status
rc_reset
case "$1" in
start)
echo -n "Trigger the Report"
startproc /usr/Trigger/run.sh
rc_status -v
;;
esac
rc_exit
and I named it as rc.TcStart.Then i run in terminal as,
Code:
service rc.TcStart start
then i got the below error.
Code:
service rc.TcStart start
Trigger the reportstartproc: cannot execute /usr/Trigger/run.sh: Exec format error
Please tell anyone how to solve this or how can i create service for jar file.
Thanks,
Ashok