public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Amit Dor-Shifer <amitds@oversi.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] customized init script
Date: Tue, 23 Feb 2010 11:44:24 +0200	[thread overview]
Message-ID: <4B83A378.9000508@oversi.com> (raw)
In-Reply-To: <6b16fb4c1002230041w3fdb4a0ey444a1a4ff21f5c81@mail.gmail.com>

Kaushal Shriyan wrote:
> Hi,
>
> I have a customized script.
>
> hosta# /etc/init.d/scriptrunner start
>  * Starting ScriptRunner ...
> /sbin/start-stop-daemon: Unable to start
> /usr/local/scriptrunner/bin/startup.sh: Exec format error (Exec format
> error)                                            [ ok ]
> hosta#
>
> My customized script is as below
>
> #!/sbin/runscript
> # Copyright 1999-2004 Gentoo Foundation
> # Distributed under the terms of the GNU General Public License v2
> # $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/5.0.27/tomcat.init,v
> 1.3 2004/10/08 13:38:08 axxo Exp $
>
> start()	{
> 	ebegin "Starting ScriptRunner"
> 	start-stop-daemon --start --exec /usr/local/scriptrunner/bin/startup.sh
> 	sleep 5
> 	eend $?
> }
>
> stop()	{
> 	ebegin "Stopping ScriptRunner"
> 	start-stop-daemon --stop --exec /usr/local/scriptrunner/bin/shutdown.sh
> 	sleep 5
> 	eend $?
> }
>
> Please suggest/guide
>
> Thanks,
>
> Kaushal
>
>   
Looks like startup.sh is invalid.
Perhaps check what 'file /usr/local/scriptrunner/bin/startup.sh'  returns.
Amit



  parent reply	other threads:[~2010-02-23 10:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-23  8:41 [gentoo-user] customized init script Kaushal Shriyan
2010-02-23  9:18 ` hb-xxl
2010-02-23 22:46   ` Stroller
2010-02-23  9:44 ` Amit Dor-Shifer [this message]
2010-02-23 11:33 ` Peter Humphrey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B83A378.9000508@oversi.com \
    --to=amitds@oversi.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox