Services in Linux using .sh file
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 Code:
service rc.TcStart start Code:
service rc.TcStart start Thanks, Ashok |
I think startproc can only execute binaries, shell scripts cannot be started.
|
Then how can i run sh file as service.please tell me how to do it.
Thanks, Ashok |
you can convert any shell script to binary. It is called shc.
http://www.thegeekstuff.com/2012/05/...-shell-script/ |
I think the shell script just needs to be marked executable.
|
All times are GMT -5. The time now is 09:37 PM. |