Re: [systemd-devel] systemd and smartd daemon

2015-04-03 Thread Andrei Borzenkov
В Fri, 3 Apr 2015 19:16:59 +0200 Lennart Poettering пишет: > On Fri, 03.04.15 19:38, Andrei Borzenkov (arvidj...@gmail.com) wrote: > > > В Fri, 3 Apr 2015 13:17:05 +0200 > > Lennart Poettering пишет: > > > > > On Thu, 02.04.15 11:49, Al Lau (laua...@gmail.com) wrote: > > > > > > > As a test,

Re: [systemd-devel] systemd and smartd daemon

2015-04-03 Thread Lennart Poettering
On Fri, 03.04.15 19:38, Andrei Borzenkov (arvidj...@gmail.com) wrote: > В Fri, 3 Apr 2015 13:17:05 +0200 > Lennart Poettering пишет: > > > On Thu, 02.04.15 11:49, Al Lau (laua...@gmail.com) wrote: > > > > > As a test, the "/usr/sbin/smartd $smartd_opts" is invoked from the command > > > line an

Re: [systemd-devel] systemd and smartd daemon

2015-04-03 Thread Andrei Borzenkov
В Fri, 3 Apr 2015 13:17:05 +0200 Lennart Poettering пишет: > On Thu, 02.04.15 11:49, Al Lau (laua...@gmail.com) wrote: > > > As a test, the "/usr/sbin/smartd $smartd_opts" is invoked from the command > > line and the daemon is forked and stayed up as expected. By default, the > > /usr/sbin/smar

Re: [systemd-devel] systemd and smartd daemon

2015-04-03 Thread Lennart Poettering
On Fri, 03.04.15 12:45, Mantas Mikulėnas (graw...@gmail.com) wrote: > Actually why does it need a pidfile in the first place? Systemd is usually > good at guessing the mainpid. Yeah, if there's only one process remaining after the parent process exited, then the PID file logic is unnecessary. Tha

Re: [systemd-devel] systemd and smartd daemon

2015-04-03 Thread Mantas Mikulėnas
On Fri, Apr 3, 2015, 14:17 Lennart Poettering wrote: On Thu, 02.04.15 11:49, Al Lau (laua...@gmail.com) wrote: > As a test, the "/usr/sbin/smartd $smartd_opts" is invoked from the command > line and the daemon is forked and stayed up as expected. By default, the > /usr/sbin/smartd daemonize.

Re: [systemd-devel] systemd and smartd daemon

2015-04-03 Thread Lennart Poettering
On Thu, 02.04.15 11:49, Al Lau (laua...@gmail.com) wrote: > As a test, the "/usr/sbin/smartd $smartd_opts" is invoked from the command > line and the daemon is forked and stayed up as expected. By default, the > /usr/sbin/smartd daemonize. Well, but does it do that correctly? i.e. does it *doubl

Re: [systemd-devel] systemd and smartd daemon

2015-04-02 Thread Andrei Borzenkov
В Thu, 2 Apr 2015 11:28:46 -0700 Al Lau пишет: > The main process does not show up in the ps and only the forked process > shows up. > > The systemd-cgls shows > > │ ├─session-14613.scope > │ │ ├─ 1577 sshd: root@pts/4 > │ │ ├─ 1676 -bash > │ │ ├─16792 systemctl start smartd > │ │ └─1

Re: [systemd-devel] systemd and smartd daemon

2015-04-02 Thread Reindl Harald
Am 02.04.2015 um 20:49 schrieb Al Lau: As a test, the "/usr/sbin/smartd $smartd_opts" is invoked from the command line and the daemon is forked and stayed up as expected. By default, the /usr/sbin/smartd daemonize. # cat /etc/sysconfig/smartmontools smartd_opts="--interval=3600 --configfile=/

Re: [systemd-devel] systemd and smartd daemon

2015-04-02 Thread Al Lau
As a test, the "/usr/sbin/smartd $smartd_opts" is invoked from the command line and the daemon is forked and stayed up as expected. By default, the /usr/sbin/smartd daemonize. # cat /etc/sysconfig/smartmontools smartd_opts="--interval=3600 --configfile=/etc/smartd.conf" >From the /var/log/messag

Re: [systemd-devel] systemd and smartd daemon

2015-04-02 Thread Lennart Poettering
On Thu, 02.04.15 10:43, Al Lau (laua...@gmail.com) wrote: > Hi, > > I am seeking help and advise on troubleshooting the starting of the smartd > daemon. The /usr/sbin/smartd comes from the smartmontools version 6.3. > > The /usr/lib/systemd/system/smartd.service file looks like this > > # cat

Re: [systemd-devel] systemd and smartd daemon

2015-04-02 Thread Al Lau
The main process does not show up in the ps and only the forked process shows up. The systemd-cgls shows │ ├─session-14613.scope │ │ ├─ 1577 sshd: root@pts/4 │ │ ├─ 1676 -bash │ │ ├─16792 systemctl start smartd │ │ └─16793 /usr/bin/systemd-tty-ask-password-agent --watch └─system.slice

Re: [systemd-devel] systemd and smartd daemon

2015-04-02 Thread Reindl Harald
I am seeking help and advise on troubleshooting the starting of the smartd daemon. The /usr/sbin/smartd comes from the smartmontools version 6.3. and the systemd unit si from where? The /usr/lib/systemd/system/smartd.service file looks like this and is wrong # cat /usr/lib/systemd/syst

Re: [systemd-devel] systemd and smartd daemon

2015-04-02 Thread Andrei Borzenkov
В Thu, 2 Apr 2015 10:43:00 -0700 Al Lau пишет: > Hi, > > I am seeking help and advise on troubleshooting the starting of the smartd > daemon. The /usr/sbin/smartd comes from the smartmontools version 6.3. > > The /usr/lib/systemd/system/smartd.service file looks like this > > # cat /usr/lib/s

[systemd-devel] systemd and smartd daemon

2015-04-02 Thread Al Lau
Hi, I am seeking help and advise on troubleshooting the starting of the smartd daemon. The /usr/sbin/smartd comes from the smartmontools version 6.3. The /usr/lib/systemd/system/smartd.service file looks like this # cat /usr/lib/systemd/system/smartd.service [Unit] Description=Self Monitoring a