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:
parent
7c8064cd71
commit
496bd20824
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue