Selaa lähdekoodia

procd: allow passing optional syslog facility as instance parameter

Optional syslog facility can be set by adding procd_set_param facility
$myfacility.
While at, also add stdout/stderr documentation.

Signed-off-by: Michael Heimpold <[email protected]>
Signed-off-by: Hans Dedecker <[email protected]> [PKG_SOURCE_VERSION update]
Michael Heimpold 6 vuotta sitten
vanhempi
sitoutus
a12ab07e21
2 muutettua tiedostoa jossa 8 lisäystä ja 5 poistoa
  1. 4 4
      package/system/procd/Makefile
  2. 4 1
      package/system/procd/files/procd.sh

+ 4 - 4
package/system/procd/Makefile

@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=procd
-PKG_RELEASE:=2
+PKG_RELEASE:=1
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/procd.git
-PKG_SOURCE_DATE:=2019-04-26
-PKG_SOURCE_VERSION:=cfaed5630cdef2c1bf58bf57859ce36c62ad0905
-PKG_MIRROR_HASH:=2271f0dd3bd3b3a4a8261aa5017d4d384d37521974a8f7495e17559f16a59cac
+PKG_SOURCE_DATE:=2019-05-02
+PKG_SOURCE_VERSION:=61a8be6cb4423dde9c7e7262456f4a16752b9abc
+PKG_MIRROR_HASH:=6020e59d1a2983a5039e10fd1f5e7b89f229fefecdff9472729709fccc7cdf43
 CMAKE_INSTALL:=1
 
 PKG_LICENSE:=GPL-2.0

+ 4 - 1
package/system/procd/files/procd.sh

@@ -20,6 +20,9 @@
 #     limits: resource limits (passed to the process)
 #     user info: array with 1 values $username
 #     pidfile: file name to write pid into
+#     stdout: boolean whether to redirect commands stdout to syslog (default: 0)
+#     stderr: boolean whether to redirect commands stderr to syslog (default: 0)
+#     facility: syslog facility used when logging to syslog (default: daemon)
 #
 #   No space separation is done for arrays/tables - use one function argument per command line argument
 #
@@ -249,7 +252,7 @@ _procd_set_param() {
 		reload_signal)
 			json_add_int "$type" $(kill -l "$1")
 		;;
-		pidfile|user|seccomp|capabilities)
+		pidfile|user|seccomp|capabilities|facility)
 			json_add_string "$type" "$1"
 		;;
 		stdout|stderr|no_new_privs)