[Unit]
Description=System Logging Service
Requires=syslog.socket
Documentation=http://www.rsyslog.com/doc/

[Service]
Type=notify
Environment=RSYSLOG_MODDIR=/storage/.kodi/addons/service.rsyslog/lib/rsyslog/
ExecStartPre=/bin/sh /storage/.kodi/addons/service.rsyslog/bin/rsyslog.init
ExecStart=/storage/.kodi/addons/service.rsyslog/bin/rsyslogd -n -f /storage/.kodi/userdata/addon_data/service.rsyslog/rsyslog.conf
StandardOutput=null
Restart=on-failure

[Install]
WantedBy=kodi.target
Alias=syslog.service
