LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-13-2004, 10:37 PM   #1
jeopardyracing
Member
 
Registered: Sep 2003
Posts: 175

Rep: Reputation: 30
start syslog


I'm running a hard drive intall of Knoppix and really liking it. I notice that by default it doesn't look like the system log starts automatically - they have GUI button to start it. I'd like for it to start each time I start the machine. I could put it in my user autostart folder for KDE but the commmand needs root. Where can I put the command elsewhere in the system such that it runs on each boot?
 
Old 10-14-2004, 04:14 AM   #2
evilmrhenry
Member
 
Registered: Oct 2003
Distribution: Knoppix
Posts: 103

Rep: Reputation: 15
Quote:
Where can I put the command elsewhere in the system such that it runs on each boot?
That is what the /etc/rc*.d directories are for. I've got the following files on my machine:
/etc/init.d/sysklogd
/etc/rc0.d/K90sysklogd
/etc/rc2.d/S10sysklogd
/etc/rc3.d/S10sysklogd
/etc/rc4.d/S10sysklogd
/etc/rc5.d/S10sysklogd
/etc/rc6.d/K90sysklogd
The rc*.d files are all links to the init.d file. The S or K tell the computer to start or stop the service, and the 90 or 10 gives the priority compared to the other files in the directory.
On Debian based systems, the right way to do this is to apt-get the sysklog package, then make sure the links are created.

The only problem I see is if Knoppix does not allow changing items in the /etc directory. If so, this becomes a lot harder.
 
Old 10-14-2004, 04:32 AM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
know nothing about knoppix accept it's debian sortof
i forget debian boot structure exactly so take this as general
put a link to the boot script in you runlevel folder
lets see you find your default run level by reading /etc/inittab
there is a line like this
id:3:initdefault:
that means run level 3
so the link goes in the rc3.d folder
name the link S10sysklogd in other words have it be the lowest number in the folder
S is for Start
and it points to /init.d/sysklogd script -- the script might be called anything
it calles syslogd and klogd (the log daemons) or they might be seperate called from seperate scripts
if i remember right debian uses some cool little executables in /sbin to do some of the bootscript stuff
so if knopix doesn't come with boot scripts get some debian ones from somewhere
red hat like boot scripts won't work
you will also have to make kill links in rc0.d and rc6.d
halt and reboot
i would make those K40sysklogd
the names don't matter ! but the numbers get called in order and just run the script that the link points to
man ln
to read how to make links (ln -s <target> <linkname>)
don't mix up target and linkname or you erase stuff
test the scripts by running them as root by hand before you subject your boot to them !
test the kill as well. just to make sure they work and don't hang or complain
if you write them yourself make sure they are executable (chmod 755)

Last edited by foo_bar_foo; 10-14-2004 at 04:36 AM.
 
Old 10-14-2004, 08:46 PM   #4
jeopardyracing
Member
 
Registered: Sep 2003
Posts: 175

Original Poster
Rep: Reputation: 30
Great

Thanks! I'll post back with how it went.
 
  


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
Syslog-ng XaViaR SUSE / openSUSE 2 06-16-2005 04:45 PM
syslog -r dvong3 Linux - General 5 12-27-2003 08:22 AM
syslog-ng keex Linux - Software 0 09-19-2003 09:13 AM
syslog bulliver Linux - General 4 04-22-2003 04:45 PM
Syslog??? pk21 Programming 3 07-05-2002 08:25 AM


All times are GMT -5. The time now is 06:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration