summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Schrempf2018-08-05 13:06:36 +0200
committerDominik Schrempf2018-08-05 13:06:36 +0200
commit951551fecb0314b36653de0e972eeb68f3d559d2 (patch)
treebcf267e7532ee018191160d1e5d9d14ed0910fbc
downloadaur-951551fecb0314b36653de0e972eeb68f3d559d2.tar.gz
Inital commit.
-rw-r--r--.SRCINFO13
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD51
-rw-r--r--nextcloudcron.service9
-rw-r--r--nextcloudcron.timer10
5 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6d3ce8f0a6f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = nextcloud-systemd-cron
+ pkgdesc = Systemd service and timer for Nextcloud Cron background jobs (see Nextcloud Arch Wiki entry).
+ pkgver = 0.1
+ pkgrel = 1
+ arch = any
+ license = GPL
+ source = nextcloudcron.service
+ source = nextcloudcron.timer
+ md5sums = 17b476ac2a223d8438c6097cd2073528
+ md5sums = 2acabd8f016661094567de4b6d1b2914
+
+pkgname = nextcloud-systemd-cron
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..3491100687a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/update
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c24312e6ff4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Dominik Schrempf <dominik.schrempf@gmail.com>
+pkgname=nextcloud-systemd-cron
+pkgver=0.1
+pkgrel=1
+epoch=
+pkgdesc="Systemd service and timer for Nextcloud Cron background jobs (see Nextcloud Arch Wiki entry)."
+arch=('any')
+url=""
+license=('GPL')
+groups=()
+depends=()
+makedepends=()
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("nextcloudcron.service"
+ "nextcloudcron.timer")
+md5sums=('17b476ac2a223d8438c6097cd2073528'
+ '2acabd8f016661094567de4b6d1b2914')
+noextract=()
+
+# prepare() {
+# cd "$srcdir/$pkgname-$pkgver"
+# patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
+# }
+
+# build() {
+# cd "$srcdir/$pkgname-$pkgver"
+# ./configure --prefix=/usr
+# make
+# }
+
+# check() {
+# cd "$srcdir/$pkgname-$pkgver"
+# make -k check
+# }
+
+package() {
+ # cd "$srcdir/$pkgname-$pkgver"
+ # make DESTDIR="$pkgdir/" install
+ install -D -m 644 nextcloudcron.service $pkgdir/etc/systemd/system/nextcloudcron.service
+ install -D -m 644 nextcloudcron.timer $pkgdir/etc/systemd/system/nextcloudcron.timer
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/nextcloudcron.service b/nextcloudcron.service
new file mode 100644
index 00000000000..8325ec67550
--- /dev/null
+++ b/nextcloudcron.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Nextcloud cron.php job
+
+[Service]
+User=http
+ExecStart=/usr/bin/php -f /usr/share/webapps/nextcloud/cron.php
+
+[Install]
+WantedBy=basic.target
diff --git a/nextcloudcron.timer b/nextcloudcron.timer
new file mode 100644
index 00000000000..da50bbb6393
--- /dev/null
+++ b/nextcloudcron.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Run Nextcloud cron.php every 15 minutes
+
+[Timer]
+OnBootSec=5min
+OnUnitActiveSec=15min
+Unit=nextcloudcron.service
+
+[Install]
+WantedBy=timers.target \ No newline at end of file