diff options
author | imlonghao | 2020-10-18 10:21:10 +0000 |
---|---|---|
committer | imlonghao | 2020-10-18 10:21:10 +0000 |
commit | 96defff647ad6b83a12d6ff089b144d2398f23be (patch) | |
tree | 1d1bdc92dc1a70102f8c5f80845110d368e38149 | |
parent | 9cd804259a1f913d5e93ac1a5ba49da0372f24bf (diff) | |
download | aur-96defff647ad6b83a12d6ff089b144d2398f23be.tar.gz |
Add .service file
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 | ||||
-rw-r--r-- | sysusers.d | 1 | ||||
-rw-r--r-- | vigil.service | 13 |
4 files changed, 23 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = vigil-bin pkgdesc = an open-source Status Page you can host on your infrastructure, used to monitor all your servers and apps, and visible to your users pkgver = 1.18.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/valeriansaliou/vigil install = vigil-bin.install arch = x86_64 @@ -9,7 +9,9 @@ pkgbase = vigil-bin provides = vigil conflicts = vigil backup = etc/vigil.cfg + source = vigil.service source = vigil-bin-1.18.0.tar.gz::https://github.com/valeriansaliou/vigil/releases/download/v1.18.0/v1.18.0-x86_64.tar.gz + sha256sums = 5365129dece19789d6129b4de23f1f9985d9ab19a9b52d95950bff7d4b339e56 sha256sums = 6733325ee818de305580a0d6582167c0c7f641f06b74dd6533d48a279311f3d5 pkgname = vigil-bin @@ -2,7 +2,7 @@ pkgname=vigil-bin pkgver=1.18.0 -pkgrel=2 +pkgrel=3 pkgdesc="an open-source Status Page you can host on your infrastructure, used to monitor all your servers and apps, and visible to your users" arch=("x86_64") url="https://github.com/valeriansaliou/vigil" @@ -10,8 +10,10 @@ license=("MPL2") provides=('vigil') conflicts=('vigil') backup=('etc/vigil.cfg') -source=("${pkgname}-${pkgver}.tar.gz::${url}/releases/download/v${pkgver}/v${pkgver}-x86_64.tar.gz") -sha256sums=('6733325ee818de305580a0d6582167c0c7f641f06b74dd6533d48a279311f3d5') +source=('vigil.service' + "${pkgname}-${pkgver}.tar.gz::${url}/releases/download/v${pkgver}/v${pkgver}-x86_64.tar.gz") +sha256sums=('5365129dece19789d6129b4de23f1f9985d9ab19a9b52d95950bff7d4b339e56' + '6733325ee818de305580a0d6582167c0c7f641f06b74dd6533d48a279311f3d5') install=vigil-bin.install prepare() { @@ -20,6 +22,7 @@ prepare() { } package() { + install -Dm644 vigil.service -t "${pkgdir}/usr/lib/systemd/system" cd vigil install -Dm755 vigil -t "${pkgdir}/usr/bin" install -Dm644 config.cfg "${pkgdir}/etc/vigil.cfg" diff --git a/sysusers.d b/sysusers.d new file mode 100644 index 000000000000..70a6fccfe55b --- /dev/null +++ b/sysusers.d @@ -0,0 +1 @@ +u vigil - "Vigil Microservices Status Page" diff --git a/vigil.service b/vigil.service new file mode 100644 index 000000000000..6fc3917472a8 --- /dev/null +++ b/vigil.service @@ -0,0 +1,13 @@ +[Unit] +Description=Vigil Microservices Status Page +After=network.target + +[Service] +Type=simple +User=vigil +Group=vigil +ExecStart=/usr/bin/vigil -c /etc/vigil.cfg +Restart=on-failure + +[Install] +WantedBy=multi-user.target |