Date: Sun, 09 Jun 2019 18:57:24 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 238424] net/kafka: fix rc script Message-ID: <bug-238424-7788-n4TMoN0Daz@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-238424-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-238424-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238424 --- Comment #3 from Dmitry Wagin <dmitry.wagin@ya.ru> --- (In reply to timp87 from comment #2) 1. fixed pidfile/piddir manipulation before patch when kafka_pidfile=3D"/var/run/kafka.pid", the following occur= red: chown kafka:kafka /var/run 2. added support daemon supervise and restart functionality > man daemon -r Supervise and restart the program after a one-second delay if it has been terminated. -R restart_delay_seconds Supervise and restart the program after the specif= ied delay if it has been terminated. -P supervisor_pidfile Write the ID of the daemon process into the supervisor_pidfile The -P option is useful combined with the -r option as supervisor_pidfile contains the ID of the supervisor not the child. This is especially import= ant if you use -r in an rc script as the -p option will give you the child's ID= to signal when you attempt to stop the service, causing daemon to restart the child. 3. added requirement for log directory required_dirs=3D"${kafka_log_dir}" as a replacement [ -d "$kafka_log_dir" ] || mkdir -p "$kafka_log_dir" 4. fixed title for the daemon process I think it is a good idea to always set the process name (-t ${name}), not = only when kafka_syslog_output_enable=3D"YES" --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238424-7788-n4TMoN0Daz>