rsyslog.service 301 B

1234567891011121314151617
  1. [Unit]
  2. Description=rsyslog
  3. After=docker.service
  4. Requires=docker.service
  5. [Service]
  6. ExecStartPre=-/usr/bin/docker rm %n
  7. ExecStart=/usr/bin/docker run --rm \
  8. --name %n \
  9. -h %H \
  10. jumanjiman/rsyslog
  11. ExecStop=/usr/bin/docker stop %n
  12. RestartSec=5s
  13. Restart=always
  14. [Install]
  15. WantedBy=multi-user.target