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