LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-27-2020, 11:27 AM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Rep: Reputation: 271Reputation: 271Reputation: 271
upgradepkg of sysklogd doesn't create rc.syslog.new


upgradepkg on recent sysklogd packages hasn't created /etc/rc.d/rc.syslog.new but has linked /etc/rc.d/rc.syslog to it, resulting in syslog messages in stdout.

Isn't sysklogd a misnomer because klogd has been eliminated?
 
Old 12-27-2020, 03:30 PM   #2
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Yes, sysklogd is technically a misnomer, but it seems that upstream is still calling it that, so...

Re rc.syslog.new, the package definitely installs that file:
Code:
$ grep rc.syslog /var/log/packages/sysklogd-2.1.2-x86_64-3 
etc/rc.d/rc.syslog.new
and the postinstall script definitely operates on it:
Code:
grep rc.syslog /var/log/scripts/sysklogd-2.1.2-x86_64-3 
config etc/rc.d/rc.syslog.new
What do you mean by "linked ... to it" in your statement?
 
Old 12-27-2020, 08:17 PM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
rc.syslog.new is in the package but isn't in /etc/rc.d after I run upgradepkg even upgradepkg --reinstall. /etc/rc.d/rc.syslog exists: it's a link to /etc/rc.d/rc.syslog.new which doesn't exist. I mentioned it here because I want to know why a file in a package wouldn't get installed. Maybe there's something funny or wrong about my installation.
 
Old 12-27-2020, 10:34 PM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
So you see this?
Code:
# ls -lh rc.syslog 
lrwxrwxrwx 1 root root 13 Dec 27 22:26 rc.syslog -> rc.syslog.new
I don't know of any way for that to have occurred other than manually, i.e. something like this:
Code:
root@liberty:/etc/rc.d# pwd
/etc/rc.d
root@liberty:/etc/rc.d# ls -lh rc.syslog 
-rwxr-xr-x 1 root root 669 Dec 23 14:05 rc.syslog*
root:/etc/rc.d# rm -f rc.syslog 
root:/etc/rc.d# ln -s rc.syslog.new rc.syslog
After doing this, it is indeed a failure case. The package extracts rc.syslog.new as expected. The postinstall process then compares the two files (rc.syslog and rc.syslog.new, which are actually the same file), and since they're identical, it removes rc.syslog.new, which leaves things just as broken as they were before.

Summary: this isn't something that pkgtools created or is able to solve. Recommendation:
Code:
rm -f /etc/rc.d/rc.syslog.new ; slackpkg reinstall sysklogd
 
2 members found this post helpful.
Old 12-28-2020, 12:33 AM   #5
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
I hope that it's obvious that if I were capable of doing something like that I'm capable of figuring it out and fixing it. I didn't do anything until I booted and saw messages that syslogd was supposed to log dumped on my terminal. I had no trouble extracting rc.syslog.new from the package and putting it in /etc/rc.d. I reported it here not because I needed help fixing it but in case there were a bug in Slackware or some oddity of my system somebody else could see that would have such a symptom.
 
  


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
sysklogd, rsyslog or syslog-ng bartgymnast Slackware 1 09-10-2013 11:11 AM
Replacing sysklogd with syslog-ng mitrio Red Hat 1 01-21-2009 09:33 PM
[SOLVED] etc/init.d/sysklogd start doesn't do anything! sarsaeol Linux - Newbie 1 05-28-2008 07:09 PM
Use Sysklogd to monitor externals Gibsonist Linux - Networking 2 03-17-2005 04:27 PM
sysklogd sending logs out the wrong interface slizadel Linux - Networking 1 06-10-2004 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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