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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-06-2003, 05:44 PM
|
#1
|
|
LQ Newbie
Registered: Mar 2003
Location: Canada
Distribution: gentoo
Posts: 21
Rep:
|
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**)
|
|
|
|
05-06-2003, 05:58 PM
|
#2
|
|
Member
Registered: Dec 2001
Location: England
Distribution: Various,currently Slackware.
Posts: 156
Rep:
|
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.
|
|
|
|
05-06-2003, 06:18 PM
|
#3
|
|
Member
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617
Rep:
|
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
|
|
|
|
05-06-2003, 06:23 PM
|
#4
|
|
LQ Newbie
Registered: Mar 2003
Location: Canada
Distribution: gentoo
Posts: 21
Original Poster
Rep:
|
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.
|
|
|
|
05-06-2003, 06:26 PM
|
#5
|
|
Member
Registered: Dec 2001
Location: England
Distribution: Various,currently Slackware.
Posts: 156
Rep:
|
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.
|
|
|
|
05-06-2003, 06:28 PM
|
#6
|
|
LQ Newbie
Registered: Mar 2003
Location: Canada
Distribution: gentoo
Posts: 21
Original Poster
Rep:
|
ok, i understand that, but what can i do to start the deamon during boot?
|
|
|
|
05-06-2003, 06:40 PM
|
#7
|
|
Member
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617
Rep:
|
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
|
|
|
|
05-06-2003, 07:06 PM
|
#8
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,902
|
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
|
|
|
|
05-06-2003, 07:25 PM
|
#9
|
|
LQ Newbie
Registered: Mar 2003
Location: Canada
Distribution: gentoo
Posts: 21
Original Poster
Rep:
|
thanks tink, it works
thx all for the help.
|
|
|
|
05-06-2003, 07:48 PM
|
#10
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,902
|
Pleasure mate :)
Cheers, and God bless,
Tink
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:31 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|