Gentoo Archives: gentoo-user

From: Michael <confabulate@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ERROR: smartd failed to start. /run/smartd.pid': No such file or directory
Date: Mon, 02 Nov 2020 08:36:40
Message-Id: 5406364.DvuYhMxLoT@lenovo.localdomain
In Reply to: [gentoo-user] ERROR: smartd failed to start. /run/smartd.pid': No such file or directory by Dale
1 On Monday, 2 November 2020 05:08:14 GMT Dale wrote:
2 > Howdy,
3 >
4 > I did a KDE update so I switched to boot runlevel and back to default.
5 > I noticed that a service didn't start and it was smartd. Not exactly
6 > critical but it does monitor my hard drives. When I try to restart it,
7 > I get this using the -v option.
8 >
9 >
10 > root@fireball / # /etc/init.d/smartd start -v
11 > * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh
12 > /etc/init.d/smartd start
13 > * Starting smartd ...
14 > * start-stop-daemon: fopen `/run/smartd.pid': No such file or directory
15 > * Detaching to start `/usr/sbin/smartd' ...
16 > * start-stop-daemon: failed to start `/usr/sbin/smartd'
17 > * Failed to start
18 > smartd
19 >
20 > [ !! ]
21 > * ERROR: smartd failed to start
22 > root@fireball / #
23 >
24 >
25 > I've tried re-emerging the smartmontools package, I've tried the zap
26 > option as well, in case my recent power supply blow up left some cruft
27 > behind. I also googled but can't find this problem. It seems tho that
28 > the pid file should maybe be in /var instead of /run. I'm not sure if
29 > it was moved recently or what.
30 >
31 > Anyone know how to fix this? Or run into this before?
32 >
33 > Thanks.
34 >
35 > Dale
36 >
37 > :-) :-)
38
39 The pid file hasn't moved here on a stable system:
40
41 $ ls -la /run/smartd.pid
42 -rw------- 1 root root 5 Nov 2 08:22 /run/smartd.pid
43
44 This is what syslog reveals:
45
46 ... smartd[3669]: smartd has fork()ed into background mode. New PID=3669.
47 ... smartd[3669]: file /run/smartd.pid written containing PID 3669
48
49 What do you see in your syslog as you try to start it?

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies