From f1dfcc9c5b41e35b93fb4727636b84f2b2c27719 Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Thu, 18 Feb 2021 07:14:56 +0300 Subject: [PATCH 1/2] fix broken acpid service. --- .../powermanagement/acpid/comar/service.py | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/hardware/powermanagement/acpid/comar/service.py b/hardware/powermanagement/acpid/comar/service.py index 376f0e9f19..b4f192e492 100644 --- a/hardware/powermanagement/acpid/comar/service.py +++ b/hardware/powermanagement/acpid/comar/service.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from comar.service import * serviceType = "local" @@ -8,15 +7,15 @@ serviceDefault = "on" PIDFILE = "/run/acpid.pid" -MSG_NO_PIDFILE = _({ - "en" : "Could not reload acpid daemon as the PID file %s does not exist." % PIDFILE, - "tr" : "%s PID dosyası mevcut olmadığından acpid hizmeti yeniden yüklenemiyor." % PIDFILE, - }) +#MSG_NO_PIDFILE = _({ +# "en" : "Could not reload acpid daemon as the PID file %s does not exist." % PIDFILE, +# "tr" : "%s PID dosyası mevcut olmadığından acpid hizmeti yeniden yüklenemiyor." % PIDFILE, +# }) @synchronized def start(): startService(command="/usr/sbin/acpid", - args=config.get("OPTIONS", ""), + args=config.get("OPTIONS", "-p /run/acpid.pid"), donotify=True) @synchronized @@ -24,13 +23,13 @@ def stop(): stopService(pidfile=PIDFILE, donotify=True) -def reload(): - import signal - import os - try: - os.kill(int(open(PIDFILE, "r").read().strip()), signal.SIGHUP) - except: - fail(MSG_NO_PIDFILE) +#def reload(): +# import signal +# import os +# try: +# os.kill(int(open(PIDFILE, "r").read().strip()), signal.SIGHUP) +# except: +# fail(MSG_NO_PIDFILE) def status(): return isServiceRunning(pidfile=PIDFILE) From cb07bdc2778c97ffb87990db64d1fcad62448244 Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Thu, 18 Feb 2021 07:30:08 +0300 Subject: [PATCH 2/2] acpid. --- hardware/powermanagement/acpid/pspec.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/powermanagement/acpid/pspec.xml b/hardware/powermanagement/acpid/pspec.xml index b3d2c0a4ea..087a044823 100644 --- a/hardware/powermanagement/acpid/pspec.xml +++ b/hardware/powermanagement/acpid/pspec.xml @@ -45,9 +45,9 @@ - 2020-11-07 + 2021-02-18 2.0.32 - Version bump. + Rebuild. Mustafa Cinasal muscnsl@gmail.com