1 |
Hi, |
2 |
|
3 |
I have a customized script. |
4 |
|
5 |
hosta# /etc/init.d/scriptrunner start |
6 |
* Starting ScriptRunner ... |
7 |
/sbin/start-stop-daemon: Unable to start |
8 |
/usr/local/scriptrunner/bin/startup.sh: Exec format error (Exec format |
9 |
error) [ ok ] |
10 |
hosta# |
11 |
|
12 |
My customized script is as below |
13 |
|
14 |
#!/sbin/runscript |
15 |
# Copyright 1999-2004 Gentoo Foundation |
16 |
# Distributed under the terms of the GNU General Public License v2 |
17 |
# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/5.0.27/tomcat.init,v |
18 |
1.3 2004/10/08 13:38:08 axxo Exp $ |
19 |
|
20 |
start() { |
21 |
ebegin "Starting ScriptRunner" |
22 |
start-stop-daemon --start --exec /usr/local/scriptrunner/bin/startup.sh |
23 |
sleep 5 |
24 |
eend $? |
25 |
} |
26 |
|
27 |
stop() { |
28 |
ebegin "Stopping ScriptRunner" |
29 |
start-stop-daemon --stop --exec /usr/local/scriptrunner/bin/shutdown.sh |
30 |
sleep 5 |
31 |
eend $? |
32 |
} |
33 |
|
34 |
Please suggest/guide |
35 |
|
36 |
Thanks, |
37 |
|
38 |
Kaushal |