summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2024-02-07 04:40:30 (GMT)
committerBritney Fransen <brfransen@gmail.com>2024-02-07 04:40:30 (GMT)
commit71530ef38d97dcde0ac4945fad99ab45ffbf2fb1 (patch)
tree9b50c114581b4a5d062baf067eadec71f31aeeae
parent8db5d9250e2db3100efb8c66bbac1a45f2871b0b (diff)
downloadlinhes_pkgbuild-71530ef38d97dcde0ac4945fad99ab45ffbf2fb1.zip
linhes_pkgbuild-71530ef38d97dcde0ac4945fad99ab45ffbf2fb1.tar.gz
linhes_pkgbuild-71530ef38d97dcde0ac4945fad99ab45ffbf2fb1.tar.bz2
linhes-system: recordings.cron: simplify mythbackend check
-rwxr-xr-xlinhes/linhes-system/PKGBUILD4
-rw-r--r--linhes/linhes-system/recordings.cron8
2 files changed, 5 insertions, 7 deletions
diff --git a/linhes/linhes-system/PKGBUILD b/linhes/linhes-system/PKGBUILD
index f5a4d5c..52a8a2d 100755
--- a/linhes/linhes-system/PKGBUILD
+++ b/linhes/linhes-system/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=linhes-system
pkgver=9.0.0
-pkgrel=69
+pkgrel=70
arch=('x86_64')
#install=$pkgname.install
pkgdesc="Everything that makes LinHES a system"
@@ -83,7 +83,7 @@ sha256sums=('e6eaa2fb4819fa60cb05b4d2e7328d2914af3a73028a735ec4d56e7ece33ecc0'
'197ff4bb3c1cafcb197268cac335f1f75ae26873aca5833d62cc51fade85176c'
'0b9868a563036c81f8fdb8ab8bbad51934aca2a07e9d7634e24214791afda8e2'
'1b965b5e7eeafdf3815c8f2722587a560693dd780327cca9910dc47fba0f1aef'
- 'aa670bc7aeed907b0f1c92a2e158fc17145e6e533f7aec9ad9c9a28c2fbdaa2e'
+ 'd09244af78e693cf0eaa14b7bd0d7535cb8f6c0a78eb0e1f0a0fd2bfd5ec56c1'
'2b91f6eb8c010a0dce1f41149c0549d067915fba93251c7af7e5328a05977f0c')
package() {
diff --git a/linhes/linhes-system/recordings.cron b/linhes/linhes-system/recordings.cron
index 387910f..d71c139 100644
--- a/linhes/linhes-system/recordings.cron
+++ b/linhes/linhes-system/recordings.cron
@@ -1,15 +1,13 @@
#!/bin/bash
-#START=$(date +%s)
-
#check if mythbackend is running and was just started
for i in 1 2
do
-if [ `ps -ef | grep mythbackend |grep -v "grep" | wc -l` ]
+if [ $(pidof mythbackend) ]
then
now=$(date +%s)
- mythbackendStartTime=`systemctl status mythbackend.service | grep Active| cut -d ' ' -f 11-12`
- mythbackendStartTime=`date -d"$mythbackendStartTime" +"%s"`
+ mythbackendStartTime=$(systemctl status mythbackend.service | grep Active| cut -d ' ' -f 11-12)
+ mythbackendStartTime=$(date -d"$mythbackendStartTime" +"%s")
if [[ $(( $now - $mythbackendStartTime )) -lt 59 ]]
then
#echo "mythbackend started less than a minute ago. Sleeping..."