[Buildroot] [PATCH] thttpd: add systemd service file

Samuel Martin s.martin49 at gmail.com
Fri Mar 20 10:22:47 UTC 2015


Hi Mike,

On Thu, Mar 19, 2015 at 8:57 PM, Mike Williams <mike at mikebwilliams.com> wrote:
> Based on Arch service file, adjust to point to /usr/sbin.
>
> Signed-off-by: Mike Williams <mike at mikebwilliams.com>
> ---
>  package/thttpd/thttpd.mk      |  5 +++++
>  package/thttpd/thttpd.service | 10 ++++++++++
>  2 files changed, 15 insertions(+)
>  create mode 100644 package/thttpd/thttpd.service
>
> diff --git a/package/thttpd/thttpd.mk b/package/thttpd/thttpd.mk
> index 1a028c8..565ade6 100644
> --- a/package/thttpd/thttpd.mk
> +++ b/package/thttpd/thttpd.mk
> @@ -44,4 +44,9 @@ define THTTPD_INSTALL_INIT_SYSV
>         $(SED) 's:/usr/local/sbin:/usr/sbin:g' $(TARGET_DIR)/etc/init.d/S90thttpd
>  endef
>
> +define THTTPD_INSTALL_INIT_SYSTEMD
> +       $(INSTALL) -D -m 0644 package/thttpd/thttpd.service $(TARGET_DIR)/usr/lib/systemd/system/thttpd.service
> +       ln -fs /usr/lib/systemd/system/thttpd.service $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/thttpd.service
Please wrap these long lines.

Regards,

-- 
Samuel



More information about the buildroot mailing list