Source: asterisk
Version: 1:16.16.1~dfsg-1
Severity: normal
Tags: patch
X-Debbugs-Cc: 1909...@bugs.launchpad.net

Hi Bernhard,

Thanks for taking care of asterisk. This bug report is just a mere
forward of what was originally reported in Ubuntu; cf:
https://bugs.launchpad.net/ubuntu/+source/asterisk/+bug/1909816.

So I'll rather not copy-paste its content here, instead just copy my findings:
The service file seems to be coming from
"contrib/systemd/asterisk.service" file, which is a part of the
upstream source. Interestingly, there's also a Debian patch named
"debian/patches/systemd.patch" which adds a new file,
"contrib/asterisk.service", which is where the default service file is
created from.

Therefore, would you be interested to fix this in Debian? The proposed
patch is hereby attached. Let me know what you think?

Thanks again for your work!


- u
Description: Set default config to avoid console output
 to syslog.
Author: Utkarsh Gupta <utka...@debian.org>
Bug: https://bugs.launchpad.net/ubuntu/+source/asterisk/+bug/1909816
Last-Update: 2021-03-16

--- a/debian/patches/systemd.patch
+++ b/debian/patches/systemd.patch
@@ -96,6 +96,12 @@
 +RestartSec=1
 +WorkingDirectory=__ASTERISK_VARLIB_DIR__
 +
++# The following two lines are by default set to null so as to avoid
++# unnecessary console output to syslog. However, if you to, you can
++# further edit /etc/asterisk/logger.conf to log output to syslog.
++StandardOutput=null
++StandardError=null
++
 +# Extra settings:
 +# If you want to set them, you can add them to a file in the directory
 +# /lib/systemd/system/asterisk.service.d/ with the extension .conf.

Reply via email to