Skip to content

Instantly share code, notes, and snippets.

@cmsj
Created June 15, 2018 20:24
Show Gist options
  • Save cmsj/71f987d1129c5dc693243dd1aa5f8f4f to your computer and use it in GitHub Desktop.
Save cmsj/71f987d1129c5dc693243dd1aa5f8f4f to your computer and use it in GitHub Desktop.
[Unit]
Description=Remote syslog to journald bridge
After=systemd-journald.service
[Service]
Type=simple
User=nobody
Group=nogroup
WorkingDirectory=/
ExecStart=/usr/local/bin/syslogreceiver.py
Restart=always
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=yes
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment