From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Sat, 26 Oct 2019 08:58:37 +0200 Subject: [Buildroot] [PATCH 1/1] package/collectd: add init script for SysV In-Reply-To: <20191026055013.13174-1-asafka7@gmail.com> References: <20191026055013.13174-1-asafka7@gmail.com> Message-ID: <20191026085837.4c80c347@windsurf.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Sat, 26 Oct 2019 08:50:13 +0300 Asaf Kahlon wrote: > Signed-off-by: Asaf Kahlon > --- > 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