Update systemd config to optionally use rsyslog

This commit is contained in:
Starbeamrainbowlabs 2019-02-04 13:54:21 +00:00
parent 216cd6d479
commit 517e3dcafc
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,2 @@
if $programname == 'rhinoreminds' then /var/log/rhinoreminds/rhinoreminds.log
if $programname == 'rhinoreminds' then ~

View File

@ -12,5 +12,10 @@ ExecStart=/srv/rhinoreminds/start_service.sh
Restart=on-failure
# Other Restart options: or always, on-abort, etc
# If you want logs to be kept automatically in /var/log, uncomment the following & copy "rhinoreminds-rsyslog.conf" in the root of this repository to "/etc/rsyslog.d" - and then do `sudo systemctl restart rsyslog.d`
#StandardOutput=syslog
#StandardError=syslog
#SyslogIdentifier=rhinoreminds
[Install]
WantedBy=multi-user.target