From 98d480287105f5f40d0ce6959270e887f5cd1f2f Mon Sep 17 00:00:00 2001 From: iridiumR Date: Mon, 7 Aug 2023 21:42:29 +0800 Subject: [PATCH] fix systemd units an so on --- PKGBUILD | 6 +++--- uptimes | 2 +- uptimesd.service | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 246e18d..3ba46a2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: 1ridic pkgname=uptimes -pkgver=0.1.1 +pkgver=0.1.2 pkgrel=2 pkgdesc="status of total uptime" arch=('any') @@ -11,8 +11,8 @@ source=( local://uptimes local://uptimesd.service ) -md5sums=('749fafe23dbedae4d9375b5ef4c09d64' - 'f598fdb7ab331933d3495c0bb53358c2') +md5sums=('04c97379f5910c5c7fdcea9b6b2e0024' + 'f006fee00a5269c916d7bacddfe7035c') package() { install -Dm755 uptimes "$pkgdir/usr/bin/uptimes" diff --git a/uptimes b/uptimes index 6a644c5..e5d329e 100755 --- a/uptimes +++ b/uptimes @@ -11,7 +11,7 @@ startTime = 0 uptime = 0 s = 0 -socket_file = '/var/tmp/uptimesd.sock' +socket_file = '/run/uptimesd.sock' uptimes_db = '/etc/uptimes/uptimes.db' def main(): diff --git a/uptimesd.service b/uptimesd.service index d9e3e2a..0810eff 100644 --- a/uptimesd.service +++ b/uptimesd.service @@ -3,7 +3,7 @@ Description=uptimes: status of total uptime After=network.target network-online.target [Service] -Type=simple +Type=forking User=root ExecStart=/usr/bin/uptimes --daemon [Install]