Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: floppy on May 23, 2013, 03:45:13 PM

Title: how to extend the existing log files (daemon etc.) ?
Post by: floppy on May 23, 2013, 03:45:13 PM
Hello,
I created a file /etc/syslog.conf with the line "daemon.* /var/log/daemon.log" with the hope a daemon.log would be created for any daemon started (pppd etc.). Is it the way how to create new log files in TinyCore?
Thanks.
Title: Re: how to extend the existing log files (daemon etc.) ?
Post by: tinypoodle on May 23, 2013, 03:58:48 PM
Code: [Select]
BusyBox v1.20.2 (2012-08-07 01:31:01 UTC) multi-call binary.

Usage: syslogd [OPTIONS]

System logging utility
(this version of syslogd ignores /etc/syslog.conf)

...which implies there must be another version not ignoring that config file...  ;)
Title: Re: how to extend the existing log files (daemon etc.) ?
Post by: tinypoodle on May 23, 2013, 04:12:56 PM
You could try and install inetutils-servers.tcz and see if that does what you want.
Title: Re: how to extend the existing log files (daemon etc.) ?
Post by: aus9 on May 23, 2013, 08:50:52 PM
I don't use pppd I have a working ethernet modem/router

maybe someone can make sense of this, assuming you have syslog bootcode

Code: [Select]
strings /usr/local/sbin/pppd | grep log
getlogin
openlog
closelog
syslog
setlogmask
reopen_log
pap_logout_hook
logwtmp
log_default
dbglog
tdb_logging_function
end_pr_log
log_to_fd
init_pr_log
uselogin
Don't output passwords to log
Show password string in debug log messages
@login
/var/log/lastlog
user %s logged in
login failed
No secret found for PAP login
unable to open user login data file %s
unable to read user login data file %s
Can't open log file %s: %m
logfile
nolog
nologfd
Set logical name for link
Append log messages to this file
Send log messages to this file descriptor
Don't send log messages to any file
Don't send log messages to any file descriptor
/var/log/wtmp
E=646 Restricted logon hours

/var/log/lastlog + /var/log/wtmp suggests look there first?
Title: Re: how to extend the existing log files (daemon etc.) ?
Post by: floppy on May 24, 2013, 04:18:04 PM
the syslog bootcode gave a good start. By using correct pppd debug/log options (see  http://ppp.samba.org/pppd.html  ) then I was not blind anymore in myking my pppd setups.
THANKS.
Title: Re: how to extend the existing log files (daemon etc.) ?
Post by: tinypoodle on May 24, 2013, 04:41:53 PM
All the syslog bootcode does is executing /sbin/syslogd & /sbin/klogd (busybox) at boot time.