Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] customized init script
Date: Tue, 23 Feb 2010 23:05:29
Message-Id: F0D83A70-161F-4C9B-997F-352936418B6F@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] customized init script by hb-xxl@web.de
1 On 23 Feb 2010, at 09:18, hb-xxl@×××.de wrote:
2
3 > On 23.02.2010 09:41, Kaushal Shriyan wrote:
4 >> * Starting ScriptRunner ...
5 >> /sbin/start-stop-daemon: Unable to start
6 >> /usr/local/scriptrunner/bin/startup.sh: Exec format error (Exec
7 >> format
8 >> error) [ ok ]
9 >>
10 > Looks like your startup.sh is not an executable. As I assume
11 > startup.sh
12 > is a shell script. So it has to use "#!/bin/bash" as its first line
13
14 Suggest you run `head -n 1 /etc/init.d/* | grep runscript` and compare
15 with the script the OP posted.
16
17 Stroller.