LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 11-07-2008, 07:37 PM   #1
bjh
Member
 
Registered: Oct 2007
Posts: 48

Rep: Reputation: 15
run as daemon?


I am trying to run dualserver as a daemon. The author's instructions say:

Quote:
DAEMONIZING

This program should be setup to start automatically
modifying boot scripts in /etc/rc.d/rc.local file
or /etc/inittab file or /etc/rc.d/rc.inet2 file.
Never include -v (verbatim flag) while running
as Daemon from these scripts. There are two alternatives:-

i) Just add the start line in any of above files.
ii) Add the enclosed rc.dualserver script in /etc/rc.d
and make it executable (755). Also you need to add the
lines:-

# Start the Dual DHCP DNS Server daemon:
if [ -x /etc/rc.d/rc.dualserver ]; then
/etc/rc.d/rc.dualserver start
fi

to any of above scripts (preferably to /etc/rc.d/rc.inet2)

Alternative ii) is recommended
Seems straight forward. When I look for the /etc/rc.d/rc.local and /etc/rc.d/rc.inet2 files as root however, I don't find them in the file structure. I find the /etc/inittab file but adding the suggested lines of code to it does not seem to invoke the app as daemon as intended.

What am I missing here?

Thanks,

Brian H.
Uxbridge Ont.
 
Old 11-08-2008, 12:56 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Since you're using Suse, you can copy the rc.dualserver script in /etc/init.d, make it executable and then create a symlink from rc2.d:
Code:
ln -s /etc/init.d/rc.dualserver /etc/init.d/rc2.d/S20dualserver
 
  


Reply



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
Can't get Routing Daemon to Run lxa2xjj Linux - Software 1 08-10-2008 06:48 AM
Enable daemon to run with service daemon start,etc baddah Programming 6 12-02-2007 05:51 PM
MySQL Daemon doesn't run stedo Debian 1 11-23-2005 08:07 AM
how to run a program as a daemon? iclinux Linux - Newbie 2 04-20-2005 12:11 AM
run as a daemon dellcom1800 Linux - Software 6 10-15-2004 07:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration