LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-23-2007, 09:18 AM   #1
batymahn
LQ Newbie
 
Registered: Mar 2004
Location: Ann Arbor, MI
Distribution: Debian
Posts: 2

Rep: Reputation: 0
Unhappy need help with init script


Hi guys,
I'm running Debian Sid with Blackdown JAVA. I developed an RMI JAVA server that I want to start on boot up. I wrote this script:

#! /bin/sh -e
#
echo "RMI Servers starting up"
rmiregistry &

cd /var/www/batymahn/classes

java -Djava.rmi.server.codebase=http://deb/batymahn/classes/ -Djava.security.policy=file:/var/www/batymahn/classes/policy examples.hello.HelloImpl

echo "RMI Servers up"


I placed it in /etc/init.d and linked it to /etc/rc5.d.
I -did a chmod 700 and it seems to work when I run it manually. Could anyone give me adice on what I'm doing wrong?
Thanks.
Chris
 
Old 08-23-2007, 11:12 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,299

Rep: Reputation: 138Reputation: 138
Try this - remove your link to your init script in /etc/rc5.d and run:

# ln -s /etc/init.d/<insert script name> /etc/rc5.d/S99<insert script name>

Prefixing the link with S99 will cause your init script to be run at the very end of the init process. It may just be a timing problem and running the script at the end usually fixes that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
init script not running naz37 Programming 2 06-12-2006 01:50 PM
How to write init script shahrokhnikou Programming 4 10-24-2005 03:08 PM
Adding to init script djgblz Linux - Newbie 4 07-28-2005 10:12 AM
lirc init script... El_Angelo Slackware 4 09-25-2003 01:20 AM
could use some help with my init.d script.... BrianK Linux - General 3 10-31-2002 07:21 PM


All times are GMT -5. The time now is 03:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration