Re: Using syslog(3) after chroot-ing

From: Charles Swiger (cswiger_at_mac.com)
Date: 06/30/04

  • Next message: Chris: "port upgrades"
    Date: Wed, 30 Jun 2004 15:06:39 -0400
    To: questions@FreeBSD.org
    
    

    On Jun 30, 2004, at 3:00 PM, Mikhail Teterin wrote:
    > =What happens if you set TZ in the environment which syslogd is started
    > =up from?
    >
    > That's an idea. Can I just call tzset() (or tzsetwall()?) prior to
    > chroot-ing?

    I suspect that you could indeed. Again, just to be clear: the
    timestamps are produced by syslogd, not by the program doing the
    logging, so you'd have to change syslogd itself.

    -- 
    -Chuck
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Chris: "port upgrades"

    Relevant Pages

    • Re: Fighting for the power. [syslogd]
      ... system when my laptop is at home, ... In particular I hit this because wpa_supplicant logs via syslog but when it's started at boot syslogd isn't available and since wpa_supplicant operates in a chroot'd environment it cannot defer connecting until syslogd has started up so nothing is ever logged. ... But this might also be used to buffer log activity so local disk activity is staged. ...
      (freebsd-current)
    • Re: System Quits Responding-Swap Issue Or What?
      ... syslogd: dirtied inode 273702on hda3 ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)
    • Re: Logging Stops after few minutes
      ... > FTPD as daemon is not the cause or should I run FTP as a service. ... Syslogd only chews on the processor when it has something ... >> be logging whole lot of information and my syslogd command should ... >> To unsubscribe, send any mail to ...
      (freebsd-questions)
    • Re: ttyv for local only?
      ... I didn't think syslogd was open to the world by default? ... I can't find the entries that the periodic security mailings found. ... I did a fresh source compile of world from the latest cvsup for ... To unsubscribe, ...
      (FreeBSD-Security)
    • RE: Logging Stops after few minutes
      ... Logging Stops after few minutes ... FTPD as daemon is not the cause or should I run FTP as a service. ... are you sure that syslogd stops working after ... > To unsubscribe, send any mail to ...
      (freebsd-questions)