LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-06-2003, 05:44 PM   #1
e0n
LQ Newbie
 
Registered: Mar 2003
Location: Canada
Distribution: gentoo
Posts: 21

Rep: Reputation: 15
Problems with running a deamon at boot time


For the past few hours i've been fooling around with Undernet's ircd. I can get everything to work fine, but the problem is i cant start the deamon as a superuser. At first it didnt bother me, but now i want to start the ircd at boot and it just doesnt want to start. What i want to know is 1- why cant the ircd be started with root, 2- is there a way to change this and if there isnt, how can i make the deamon start with a different user?

Thx in advance,

-Mat


(**sorry for the duplicate post but i couldnt edit the Subject of the first post**)
 
Old 05-06-2003, 05:58 PM   #2
redgore
Member
 
Registered: Dec 2001
Location: England
Distribution: Various,currently Slackware.
Posts: 156

Rep: Reputation: 30
Posting twice isnt really a good idea. I shall answer in this thread ! Some ircds cant be started as root because it is a security risk. As for your second question im not sure.
 
Old 05-06-2003, 06:18 PM   #3
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
is anything mentioned in the man/help pages?

It may need to be ran as a certain user, or may just need to be able to write/read/execute to certain directories.

Need more info, such as any error messages. After it attempts to start at boot, show us any relevant in your syslod (housed at /var/log/syslog but there is a 'syslog' viewer in gnome 2.2 under the system tools menu)

HTH

Alex
 
Old 05-06-2003, 06:23 PM   #4
e0n
LQ Newbie
 
Registered: Mar 2003
Location: Canada
Distribution: gentoo
Posts: 21

Original Poster
Rep: Reputation: 15
When i try to start ircd is say something like "ERROR: Cant run as super-user." then quits.

As for the logs, well /var/log/syslog doesnt exist (im using mdk9, maybe it has something to do with it), but the boot log showed me the same error i mentionned above.
 
Old 05-06-2003, 06:26 PM   #5
redgore
Member
 
Registered: Dec 2001
Location: England
Distribution: Various,currently Slackware.
Posts: 156

Rep: Reputation: 30
like i said It cant be run as root because its a security risk ! for the same reason why connecting to IRC and the net as root is.
 
Old 05-06-2003, 06:28 PM   #6
e0n
LQ Newbie
 
Registered: Mar 2003
Location: Canada
Distribution: gentoo
Posts: 21

Original Poster
Rep: Reputation: 15
ok, i understand that, but what can i do to start the deamon during boot?
 
Old 05-06-2003, 06:40 PM   #7
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
maybe put a sudo command in there?

try looking here:

http://man.linuxquestions.org/index....ction=0&type=2

not sure if that is the right way to do this.

Have you searched www.google.co.uk/linux ?
I would of thought that people would of documented how to start it up.

Alex
 
Old 05-06-2003, 07:06 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
Originally posted by e0n
ok, i understand that, but what can i do to start the deamon during boot?
What I do with postgres?
Quote:
from /etc/rc.d/rc.local
/bin/su - postgres /usr/local/pgsql/bin/pg_ctl start -l /home/postgres/logfile -D /usr/local/pgsql/data > /home/postgres/start 2>&1&
You'll probably want to change the
/bin/su - postgres to /bin/su -<yourIRCDuser> :)
but you're getting the idea ;)


Cheers,
Tink
 
Old 05-06-2003, 07:25 PM   #9
e0n
LQ Newbie
 
Registered: Mar 2003
Location: Canada
Distribution: gentoo
Posts: 21

Original Poster
Rep: Reputation: 15
thanks tink, it works

thx all for the help.
 
Old 05-06-2003, 07:48 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Pleasure mate :)

Cheers, and God bless,
Tink
 
  


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
running dhcpd at boot time Fritz_Monroe Slackware 6 06-16-2005 06:43 PM
Music Player Deamon - running as multimedia iskrem Linux - Security 5 01-23-2005 02:35 PM
make a deamon startup at boot time kernelvn Fedora 4 10-20-2004 06:50 PM
How could i disable deamon that's running which i don't need Paxmaster Linux - Software 1 10-11-2004 03:54 PM
Running scripts at boot time saintt Linux - Software 1 08-09-2002 05:03 AM


All times are GMT -5. The time now is 08:13 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