Skip to content

Instantly share code, notes, and snippets.

@tranthamp
Created May 5, 2014 16:48
Show Gist options
  • Save tranthamp/c3b6db0459d28f11d920 to your computer and use it in GitHub Desktop.
Save tranthamp/c3b6db0459d28f11d920 to your computer and use it in GitHub Desktop.

Revisions

  1. tranthamp created this gist May 5, 2014.
    16 changes: 16 additions & 0 deletions systemd - Enable syslog
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # Edit /etc/systemd/journal.conf and set the following options to prevent the creation of .journal files and to forward messages to syslog:
    Storage=none
    ForwardToSyslog=yes

    # Check if syslog.service is a sym-link to /dev/null and remove it if so
    $ ls -l /lib/systemd/system/syslog.service
    $ rm /lib/systemd/system/syslog.service

    # Unmask the syslog service so that it can be started
    $ systemctl unmask syslog.service

    # Start the syslog service (or just reboot)
    $ /etc/init.d/syslog start

    # All system messages should now show up in /var/log/messages
    $ tail /var/log/messages