siproxd: capture debug output in syslog 395/head
authorguidosarducci <guidosarducci@users.noreply.github.com>
Sun, 25 Nov 2018 14:15:27 +0000 (06:15 -0800)
committerguidosarducci <guidosarducci@users.noreply.github.com>
Sun, 9 Dec 2018 00:53:08 +0000 (16:53 -0800)
Although siproxd normally logs to syslog, it's debug output appears to go
only to stderr. Adjust procd setup to also capture stderr in syslog.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
net/siproxd/Makefile
net/siproxd/files/siproxd.init

index 39dde99e778083876701bfefccd4f04adbbeee06..68a4b7e7bee37bd7d505d3e1d0c3f8dca2ccfcca 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=siproxd
 PKG_VERSION:=0.8.2
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/siproxd
index a8b86f7e50355132d64473f546af7a82f6b79b06..7d5b003c19af761926e2e520211ed989ece93923 100644 (file)
@@ -110,6 +110,7 @@ section_end() {
        procd_set_param command "$PROG" --config "$conf_file"
        procd_set_param pidfile "$pid_file"
        procd_set_param respawn
+       procd_set_param stderr 1
        procd_add_jail siproxd log
        procd_add_jail_mount /etc/passwd /etc/group /etc/TZ /dev/null
        procd_add_jail_mount "$conf_file"