sys-cluster/ceph: initd: don't log all daemons to same file
authorPatrick McLean <chutzpah@gentoo.org>
Thu, 19 Oct 2017 22:56:20 +0000 (15:56 -0700)
committerPatrick McLean <chutzpah@gentoo.org>
Thu, 19 Oct 2017 22:56:20 +0000 (15:56 -0700)
Package-Manager: Portage-2.3.11, Repoman-2.3.3

sys-cluster/ceph/files/ceph.confd-r3
sys-cluster/ceph/files/ceph.initd-r5

index 54673c2688f704575769be5079dee557b111a1f7..281037c59982c5ede926865742af81a1eafe5e20 100644 (file)
@@ -14,6 +14,8 @@
 # settings for openrc supervisor for various ceph daemons
 #
 # defaults (can be overidden for each daemon)
+# stderr and stdout values get .${id}-std{out,err}.log appended to the provided value
+#
 #respawn_delay=20
 #respawn_max=5
 #respawn_period=1800
index 7087de605175ad4f9f5566c807ae42690e82d386..18f539a57a8f95890bcbc710115db480a837fb55 100644 (file)
@@ -73,7 +73,7 @@ start_pre() {
                fi
 
                if [ "${arg_name}" = "stderr" ] || [ "${arg_name}" = "stdout" ]; then
-                       supervise_daemon_args="${supervise_daemon_args} --${arg_name//_/-}=${arg_val}"
+                       supervise_daemon_args="${supervise_daemon_args} --${arg_name//_/-}=${arg_val}.${daemon_id}-${arg_name}.log"
                fi
        done
 }