Re: [Apcupsd-users] apcupsd - systemd issue with pidfile
Brought to you by:
adk0212
|
From: Jean-David B. <jea...@ve...> - 2022-04-13 11:51:43
|
On 4/13/22 05:46, Lorenzo Buzzi wrote:
> Although the daemon is started and works correctly, the startup log
> always reports the following:
> root@bacon:/etc/apcupsd# systemctl status apcupsd.service
> ● apcupsd.service - UPS power management daemon
> Loaded: loaded (/lib/systemd/system/apcupsd.service; enabled;
> vendor preset: enabled)
> Active: active (running) since Fri 2022-04-01 10:08:31 CEST; 2s ago
> Docs: man:apcupsd(8)
> Process: 15683 ExecStartPre=/lib/apcupsd/prestart (code=exited,
> status=0/SUCCESS)
> Process: 15697 ExecStart=/sbin/apcupsd (code=exited, status=0/SUCCESS)
> Main PID: 15699 (apcupsd)
> Tasks: 3 (limit: 9042)
> Memory: 1.2M
> CGroup: /system.slice/apcupsd.service
> └─15699 /sbin/apcupsd
>
> Apr 01 10:08:31 bacon systemd[1]: Starting UPS power management daemon...
> Apr 01 10:08:31 bacon systemd[1]: *apcupsd.service: Can't open PID file
> /run/apcupsd.pid (yet?) after start: Operation not permitted*
> Apr 01 10:08:31 bacon apcupsd[15699]: apcupsd 3.14.14 (31 May 2016)
> debian startup succeeded
> Apr 01 10:08:31 bacon systemd[1]: Started UPS power management daemon.
> Apr 01 10:08:31 bacon apcupsd[15699]: NIS server startup succeeded
I am running Red Hat Enterprise Linux release 8.5 (Ootpa) with a
Smart-Ups 750. 3.14.14 (31 May 2016) redhat
FIRMWARE : UPS 04.6 / 00.5
On my system, I get:
localhost:root[/var/log]# systemctl status apcupsd.service
● apcupsd.service - APC UPS Power Control Daemon for Linux
Loaded: loaded (/usr/lib/systemd/system/apcupsd.service; enabled;
vendor preset: disabled) <---<<<
Active: active (running) since Sun 2022-04-10 15:02:46 EDT; 2 days ago
Process: 18057 ExecStartPre=/bin/rm -f /etc/apcupsd/powerfail
(code=exited, status=0/SUCCESS)
Main PID: 18082 (apcupsd)
Tasks: 3 (limit: 408540)
Memory: 1.0M
CGroup: /system.slice/apcupsd.service
└─18082 /sbin/apcupsd -b -f /etc/apcupsd/apcupsd.conf
Apr 10 15:02:46 localhost.localdomain systemd[1]: Starting APC UPS Power
Control Daemon for Linux...
Apr 10 15:02:46 localhost.localdomain systemd[1]: Started APC UPS Power
Control Daemon for Linux.
Apr 10 15:02:46 localhost.localdomain apcupsd[18082]: apcupsd 3.14.14
(31 May 2016) redhat startup succeeded
Apr 10 15:02:46 localhost.localdomain apcupsd[18082]: NIS server startup
succeeded
--
.~. Jean-David Beyer
/V\ Shrewsbury, New Jersey
/( )\ Red Hat Enterprise Linux
^^-^^ up 2 days, 16 hours, 27 minutes
|