[Buildroot] [PATCH 1/1] package/collectd: add init script for SysV

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Oct 26 06:58:37 UTC 2019


On Sat, 26 Oct 2019 08:50:13 +0300
Asaf Kahlon <asafka7 at gmail.com> wrote:

> Signed-off-by: Asaf Kahlon <asafka7 at gmail.com>
> ---
>  package/collectd/S90collectd | 33 +++++++++++++++++++++++++++++++++
>  package/collectd/collectd.mk |  5 +++++
>  2 files changed, 38 insertions(+)
>  create mode 100644 package/collectd/S90collectd
> 
> diff --git a/package/collectd/S90collectd b/package/collectd/S90collectd
> new file mode 100644
> index 0000000000..5caff17238
> --- /dev/null
> +++ b/package/collectd/S90collectd
> @@ -0,0 +1,33 @@
> +#!/bin/sh
> +
> +start() {
> +	printf "Starting collectd... "
> +	/usr/sbin/collectd

I think we like to use start-stop-daemon in our init scripts. Any
reason why you're not using start-stop-daemon here ?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list