diff options
Diffstat (limited to 'satellit_installer/includes/60-setup_logging.inc')
-rw-r--r-- | satellit_installer/includes/60-setup_logging.inc | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/satellit_installer/includes/60-setup_logging.inc b/satellit_installer/includes/60-setup_logging.inc index 4b98a09..746dd14 100644 --- a/satellit_installer/includes/60-setup_logging.inc +++ b/satellit_installer/includes/60-setup_logging.inc @@ -1,18 +1,6 @@ setup_logging() { - echo -n "# Setting up logging for dmsd, and taskmanager (to /var/log/xxxx)... " - cp "$BASEDIR/static_files/logging"/80-dmsd.conf \ - "$BASEDIR/static_files/logging"/90-taskmanager.conf /etc/rsyslog.d/ - cp "$BASEDIR/static_files/logging"/satellite-logrotate /etc/logrotate.d/ - echo "ok." - - echo -n "# Restarting rsyslogd... " - [ "$SYSTEMD" ] && systemctl restart rsyslog >/dev/null || /etc/init.d/rsyslog restart >/dev/null - ERR=$? - if [ "$ERR" -ne 0 ]; then - echo - echo "# Could not restart rsyslog correctly - error number $ERR!" - # Fehlerbehandlung? - else - echo "ok." - fi + echo "# Setting up rsyslog logging for dmsd, and taskmanager (to /var/log/xxxx)... " + cp "$BASEDIR/static_files/logging/80-dmsd.conf" \ + "$BASEDIR/static_files/logging/90-taskmanager.conf" /etc/rsyslog.d/ || perror "Could not add rsyslog rules" + cp "$BASEDIR/static_files/logging/satellite-logrotate" /etc/logrotate.d/ || perror "Could not add logrotate rules" } |