LinuxQuestions.org
Help answer threads with 0 replies.
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 05-29-2018, 04:54 AM   #1
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Slackware Current Empty etc/logrotate.d/ulogd.new in May 28 Update


All --

Any idea why etc/logrotate.d/ulogd.new is a zero-length file in yesterday's ulogd-2.0.7-x86_64-1.txz ?

Should I delete the old /etc/logrotate.d/ulogd ?

Or should I keep the old version and delete /etc/logrotate.d/ulog.new ?

Or something else ?

I looked at ulogd.SlackBuild and this is the line that makes the empty file:

Code:
mkdir -p $PKG/etc/logrotate.d
cat ulogd.logrotate > $PKG/etc/logrotate.d/ulogd.new
Note that this ulogd.lograte file does exist in the old source tarball ulogd-2.0.5.tar.xz but it is no longer included in ulogd-2.0.7.tar.lz

Thanks.

-- kjh

Note ulogd.new:

Code:
# sh /root/tmp/update-logs/.find.new 

-rw-r--r-- 1 root root 197 Aug 30  2017 /etc/logrotate.d/ulogd
-rw-r--r-- 1 root root   0 May 28 12:55 /etc/logrotate.d/ulogd.new
and ...

Code:
# tar -tvf slackware64/n/ulogd-2.0.7-x86_64-1.txz 

drwxr-xr-x root/root         0 2018-05-28 12:55 etc/
drwxr-xr-x root/root         0 2018-05-28 12:55 etc/logrotate.d/
-rw-r--r-- root/root         0 2018-05-28 12:55 etc/logrotate.d/ulogd.new
drwxr-xr-x root/root         0 2018-05-28 12:55 etc/rc.d/
-rwxr-xr-x root/root       437 2018-05-28 12:55 etc/rc.d/rc.ulogd.new
-rw-r--r-- root/root     10294 2018-05-28 12:55 etc/ulogd.conf.new
 
Old 05-29-2018, 05:10 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
it seems the ulogd devs removed it intentionally before releasing 2.0.7, leaving to distro maintainers to provide these files

https://git.netfilter.org/ulogd2/com...1b55bae31645b0

I think it's ok just to get an old copy of the ulogd.logrotate file and ship it with the SlackBuild.

in the meantime it's ok not to let slackpkg overwrite the old /etc/logrotate.d/ulogd with a blank one.
 
2 members found this post helpful.
Old 05-29-2018, 05:47 AM   #3
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,783

Rep: Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460
Even though /etc/rc.d/rc.ulogd has x-bit set, nothing calls it. So, it if isn't run, it doesn't write to /var/log/ulogd.log either (which would be the log rotated). If the administrator uses ulogd to log netfilter stuff, she will configure it.
 
2 members found this post helpful.
Old 05-29-2018, 08:41 AM   #4
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Original Poster
Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Thanks All'Y'All.

For the time being, I'll remove /etc/logrotate.d/ulogd.new

Below is the old /etc/logrotate.d/ulogd if anyone needs it:

Thanks again.

-- kjh

# cat /etc/logrotate.d/ulogd

Code:
/var/log/ulogd.log /var/log/ulogd.syslogemu /var/log/ulogd.pktlog /var/log/ulogd.pcap {
    missingok
    sharedscripts
    postrotate
        /bin/killall -HUP ulogd 2> /dev/null || true
    endscript
}
 
1 members found this post helpful.
Old 05-31-2018, 08:37 AM   #5
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Original Poster
Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
This Q was truly [RESOLVED] by Pat and the Team with the Slackware64 14.2+current update on Thu May 31 04:55:33 UTC 2018.

Note the new ulogd.logrotate file in the ~/source/n/ulogd/ directory below.

Thanks All'Y'All !

-- kjh

Code:
# pwd -P ; ls -la

/home/dld/slackware/slackware-current-64/source/n/ulogd

total 356
drwxr-xr-x   2 500 500   4096 May 28 19:42 ./
drwxr-xr-x 147 500 500   4096 May 29 15:44 ../
-rw-r--r--   1 500 500    343 Sep  8  2012 doinst.sh.gz
-rw-r--r--   1 500 500    437 Apr 22  2013 rc.ulogd
-rw-r--r--   1 500 500    884 May 28 12:54 slack-desc
-rw-r--r--   1 500 500 335009 Apr 26 18:23 ulogd-2.0.7.tar.lz
-rwxr-xr-x   1 500 500   3638 May 28 19:43 ulogd.SlackBuild*
-rw-r--r--   1 500 500    197 May 28 19:42 ulogd.logrotate
 
  


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
XFCE notification tray empty after latest -current update dsotm Slackware 2 03-17-2016 07:01 PM
[SOLVED] Empty lines in xdm config files after current update BroX Slackware 3 07-10-2013 01:02 PM
[SOLVED] Update Error in Slackware-current rickphilwi Slackware 4 11-23-2011 01:32 PM
[SOLVED] logrotate not create empty file malikperera Linux - Server 1 03-24-2010 06:30 PM
Slackware-Current kde menus empty TNWestTex Slackware 3 04-09-2007 07:52 AM

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

All times are GMT -5. The time now is 12:20 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
Open Source Consulting | Domain Registration