From 8a552e13c9d815d8a5e634b6df475ee5c44acdf8 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 2 Jan 2022 02:57:57 +0400 Subject: [PATCH] Moving aux files into contrib dir. Added PKGBULD for Archlinux. --- contrib/archlinux/PKGBUILD | 21 +++++++++++++++++++ .../config.example.json | 0 .../systemd/httpprocwatchd.service | 3 ++- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 contrib/archlinux/PKGBUILD rename config.example.json => contrib/config.example.json (100%) rename httpprocwatchd.service => contrib/systemd/httpprocwatchd.service (62%) diff --git a/contrib/archlinux/PKGBUILD b/contrib/archlinux/PKGBUILD new file mode 100644 index 0000000..24aea17 --- /dev/null +++ b/contrib/archlinux/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Alexander "Arav" Andreev +pkgname=httpprocwatchd +pkgver=1.0.0 +pkgrel=1 +pkgdesc="HTTPProcWatchD hands out an HTTP endpoint to see status of watched processes." +arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') +url="https://git.arav.top/Arav/httpprocwatchd" +license=('MIT') +source=('git+https://git.arav.top/Arav/httpprocwatchd.git') +md5sums=('SKIP') + +build() { + cd "$srcdir/$pkgname" + make +} + +package() { + cd "$srcdir/$pkgname" + make DESTDIR="$pkgdir/" install + make DESTDIR="$pkgdir/" install-service +} \ No newline at end of file diff --git a/config.example.json b/contrib/config.example.json similarity index 100% rename from config.example.json rename to contrib/config.example.json diff --git a/httpprocwatchd.service b/contrib/systemd/httpprocwatchd.service similarity index 62% rename from httpprocwatchd.service rename to contrib/systemd/httpprocwatchd.service index e13da05..8fdb8cc 100644 --- a/httpprocwatchd.service +++ b/contrib/systemd/httpprocwatchd.service @@ -1,5 +1,5 @@ [Unit] -Description=HTTPProcWatchD hands out a JSON HTTP endpoint to see status of watched processes +Description=HTTPProcWatchD hands out an HTTP endpoint to see status of watched processes. After=network.target [Service] @@ -7,6 +7,7 @@ Type=simple DynamicUser=yes Restart=on-failure ExecStart=/usr/bin/httpprocwatchd --config /etc/httpprocwatchd/config.json +ExecReload=kill -HUP $MAINPID [Install] WantedBy=multi-user.target