remove --id from logger command

logger --id=$$ ... leads to this error message
    logger: send message failed: Operation not permitted

The same issue is mentioned here: https://github.com/jonathanio/update-systemd-resolved/issues/25
This commit is contained in:
casperklein 2024-08-16 01:31:35 +02:00
parent 7c8064cd71
commit 496bd20824
1 changed files with 2 additions and 1 deletions

View File

@ -12,11 +12,12 @@ GETMAIL_DIR=/var/lib/getmail
trap 'pkill --parent $$' EXIT
function _syslog_error() {
logger --id "${$}" --priority mail.err --tag getmail "${1}"
logger --priority mail.err --tag getmail "${1}"
}
function _stopService() {
_syslog_error "Stopping service"
sleep 2
exec supervisorctl stop getmail
}