Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476012 - app-admin/syslog-ng-3.4.2: /var/log/news/ does not exist
Summary: app-admin/syslog-ng-3.4.2: /var/log/news/ does not exist
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-06 22:54 UTC by Nikoli
Modified: 2013-07-06 23:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2013-07-06 22:54:28 UTC
# equery f syslog-ng|grep /var/
/var/lib
/var/lib/syslog-ng
/var/lib/syslog-ng/.keep_app-admin_syslog-ng-0

$ bzcat /usr/share/doc/syslog-ng-3.4.2/syslog-ng.conf.doc.bz2|grep -e /var/log/news/ -e create_dirs
#  create_dirs                y/n      Enable or disable directory creation 
    create_dirs (no);
#                 on the create_dirs() setting (both global and a per 
#                            create_dirs().
                             owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes)); };
destination newscrit       { file("/var/log/news/critical"); };
destination newserr        { file("/var/log/news/errors"); };
destination newsnotice     { file("/var/log/news/notice"); };
destination newswarn       { file("/var/log/news/warnings"); };
                             dir_perm(0700) create_dirs(yes)


$ bzcat /usr/share/doc/syslog-ng-3.4.2/syslog-ng.conf.gentoo.hardened.bz2|grep -e /var/log/news/ -e create_dirs
destination newscrit { file("/var/log/news/news.crit"); };
destination newserr { file("/var/log/news/news.err"); };
destination newsnotice { file("/var/log/news/news.notice"); };


Seems this option is not enabled by default:
http://www.balabit.com/wiki/syslog-ng-faq-createdirs

Please create this dir in ebuild or fix syslog-ng.conf*
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2013-07-06 23:02:10 UTC
That's a doc file that you might find useful to modify for your own needs.  It's not meant to be a drop-in config file for use.  The ebuild installs a default config file that should work without any modifications.