diff options
author | Charles Leclerc | 2020-07-02 23:30:02 -0400 |
---|---|---|
committer | Charles Leclerc | 2020-07-02 23:33:23 -0400 |
commit | 4a4b67576e82ce3ffe5c22c323aa548e9e7472b4 (patch) | |
tree | 8bd30775797fc81aa994d57c47f80553ca1b1b28 | |
download | aur-4a4b67576e82ce3ffe5c22c323aa548e9e7472b4.tar.gz |
Initial version 1.0.0-1
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 18 | ||||
-rw-r--r-- | h2.service | 11 | ||||
-rw-r--r-- | h2.sysusers | 1 | ||||
-rw-r--r-- | h2.tmpfiles | 1 |
6 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a3d6d70c6403 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = h2-systemd + pkgdesc = systemd service files for H2 database + pkgver = 1.0.0 + pkgrel = 1 + arch = any + license = Apache + depends = h2 + source = h2.service + source = h2.sysusers + source = h2.tmpfiles + sha256sums = 608e09255bbd9cbec6f850b9c6caf8ef5b91303e5a648b5b31978277a32f640a + sha256sums = b31bcfa1b8dc3c72bc3f12a8219f505b9e7e75dc3e9aeb46029da8db993eca4b + sha256sums = 6d0ef5107ef142656868bfddad7784d1b8a5f96c21595a6fef7fb76208375108 + +pkgname = h2-systemd + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..08c7ccd880d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.pkg.tar.* +pkg +src diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..246cecb9f4bb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,18 @@ +# Maintainer: Charles Leclerc <charles@la-mouette.net> +pkgname=h2-systemd +pkgver=1.0.0 +pkgrel=1 +pkgdesc="systemd service files for H2 database" +arch=(any) +license=('Apache') +depends=('h2') +source=('h2.service' 'h2.sysusers' 'h2.tmpfiles') +sha256sums=('608e09255bbd9cbec6f850b9c6caf8ef5b91303e5a648b5b31978277a32f640a' + 'b31bcfa1b8dc3c72bc3f12a8219f505b9e7e75dc3e9aeb46029da8db993eca4b' + '6d0ef5107ef142656868bfddad7784d1b8a5f96c21595a6fef7fb76208375108') + +package() { + install -Dm 644 h2.service -t "${pkgdir}/usr/lib/systemd/system" + install -Dm 644 h2.sysusers "${pkgdir}/usr/lib/sysusers.d/h2.conf" + install -Dm 644 h2.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/h2.conf" +} diff --git a/h2.service b/h2.service new file mode 100644 index 000000000000..a64cb8e14dac --- /dev/null +++ b/h2.service @@ -0,0 +1,11 @@ +[Unit] +Description=H2 Database server + +[Service] +Type=simple +User=h2 +ExecStart=/usr/bin/java -cp /usr/share/java/h2/h2.jar org.h2.tools.Server -baseDir /var/lib/h2 -tcp -web -ifNotExists -tcpPassword h2 +ExecStop=/usr/bin/java -cp /usr/share/java/h2/h2.jar org.h2.tools.Server -tcpShutdown tcp://localhost -tcpPassword h2 + +[Install] +WantedBy=multi-user.target diff --git a/h2.sysusers b/h2.sysusers new file mode 100644 index 000000000000..6b12a7e9bf7b --- /dev/null +++ b/h2.sysusers @@ -0,0 +1 @@ +u h2 - "H2 database user" /var/lib/h2 - diff --git a/h2.tmpfiles b/h2.tmpfiles new file mode 100644 index 000000000000..7bfa1dfc6b62 --- /dev/null +++ b/h2.tmpfiles @@ -0,0 +1 @@ +d /var/lib/h2 700 h2 h2 |