Received: from mail-yw1-f65.google.com (mail-yw1-f65.google.com [209.85.161.65]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id A4DF8781AF5 for <~alpine/aports@lists.alpinelinux.org>; Fri, 29 Nov 2019 11:37:12 +0000 (UTC) Received: by mail-yw1-f65.google.com with SMTP id y64so10880071ywe.3 for <~alpine/aports@lists.alpinelinux.org>; Fri, 29 Nov 2019 03:37:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=voWjdNZzsJCwRFewIE0yjaRD/9cJDOcRf/8R49lYFPY=; b=kGRKG52NxdT3+NEGloCxCPw2MeJ/6XfCAhSFqY7/vMCUWjjgMjRaIgHLcyVK+dNa1g 7NHLALBpaKAXl+G5OtdTavkt4LRONJx0r8KB7xGnaWY9jc78GNdh/LIavFHcaNZBGuID n2BPA90kVrrgzje76UmgUlmRoFM0FJM3V34Uu2xj1bUGpOWV28xfs13P8zWthcimmMWJ 6eFfh5uc+yOnGxm01dPelc3MzyMSR8c71Ziqc1WZ8La+S4TtU6ML0MXw9mIWcI64LvAA KHJhBHpJvG5SR0cLmniIxMGjFcRwxCHgMasqbxJUjXhaD+/v8UCHnFissX1Sq8XvY1ar /mEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=voWjdNZzsJCwRFewIE0yjaRD/9cJDOcRf/8R49lYFPY=; b=NS1CXTRVBLFWvYBe4jWqb/Fe1oigL2n1PZ/HuLF5yLeVHnbeWEKbHU4w39vpkZMHap YQ/HSkuUqNf8MUnBiqpghl6CiXDbqv4NC4chU2oqGdFSurFDYGr5GB13GbtLozXK2NB4 3lk0WOv/KuDnCNxXrYmyGhsRKOKCt3rC82apMOHOoiQzgXXCfDvOUlHNR/8LmTnsyDln rnOjPZrdxC9cjN0816a/Kv8l5/VJh5HShd2QI8tEZTCFmmWT5bAPvUhcmCkbd5DM0rG9 cKydp6A04pApwte6BJItDyIFclvClzBYThNaQ33uL5BWYbXzW/Sx9r7ptEK57jBjA681 0uGw== X-Gm-Message-State: APjAAAVXn6+KbZK3E1SLssHBNm/Cg9Y0+TM4Wb4rUamwNOdaeaDBpW98 WzY/4khl4HXAu/s7646K2w9TGCPtwysibT91P/U= X-Google-Smtp-Source: APXvYqy2LVhzwQ+ayEHYdlZ+x+wYGzheso7Bi/adOt6cQK3DN3o8GnwVy7Ey1ThTzuL1tmKqmhoalfaVwBqkoQCg1JU= X-Received: by 2002:a0d:fb42:: with SMTP id l63mr10909523ywf.373.1575027431274; Fri, 29 Nov 2019 03:37:11 -0800 (PST) MIME-Version: 1.0 References: <20191128015742.21302-1-sir@cmpwn.com> <20191128015742.21302-2-sir@cmpwn.com> In-Reply-To: <20191128015742.21302-2-sir@cmpwn.com> From: Konstantin Kulikov Date: Fri, 29 Nov 2019 14:37:00 +0300 Message-ID: Subject: Re: [PATCH 1/2] community/prometheus: new APKBUILD To: Drew DeVault Cc: ~alpine/aports@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" >+ -gcflags "all=-trimpath=$PWD" \ >+ -asmflags "all=-trimpath=$PWD" \ You can use simpler go build -trimpath here. Also add -mod=vendor to avoid downloading modules during build (will become the default in go1.14). >+config_file=/etc/prometheus/prometheus.yml >+storage_path=/var/lib/prometheus/data Usual convention is to prefix variable name with service name (eg prometheus_config_file) to avoid potential conflicts with other openrc defined variables. >+supervise_daemon_args="-1 /var/log/prometheus.log -2 /var/log/prometheus.log" I recommend to use output_log and error_log variables in conf.d instead. The biggest problem with supervise-daemon is that you can't rotate log files without your restarting service. >+pidfile="/run/${RC_SVCNAME}.pid" Not needed with supervise-daemon >+grep '^prometheus' /etc/group This will also match usernames starting with "prometheus", for ex "prometheusexporter".