public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] customized init script
@ 2010-02-23  8:41 Kaushal Shriyan
  2010-02-23  9:18 ` hb-xxl
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Kaushal Shriyan @ 2010-02-23  8:41 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-23 23:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-02-23 11:33 ` Peter Humphrey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox