Bug 4233

Summary: smartd.service fails to start
Product: Mageia Reporter: Curtis Hildebrand <curtis_mageia>
Component: RPM PackagesAssignee: Damien Lallement <mageia>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: dmorganec
Version: CauldronKeywords: Triaged
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: smartmontools-5.42-2.mga2.src.rpm CVE:
Status comment:
Bug Depends on:    
Bug Blocks: 2120    

Description Curtis Hildebrand 2012-01-23 02:33:18 CET
I installed from Cauldron after alpha3 was released.  All updates are applied except for the kernel.

Smartd fails to start.  Probably from the wrong EnvironmentFile given in the service file:

/etc/systemd/system/multi-user.target.wants/smartd.service ::

[Service]
EnvironmentFile=/etc/sysconfig/smartmontools
ExecStart=/usr/sbin/smartd -n $smartd_opts


The EnvironmentFile variable above should be:  /etc/sysconfig/smartd


/var/log/messages:
Jan 18 20:21:16 localhost systemd[1]: smartd.service failed to run 'start' task: No such file or directory
Jan 18 20:21:16 localhost systemd[1]: Unit smartd.service entered failed state.

]# systemctl status smartd.service
smartd.service - Self Monitoring and Reporting Technology (SMART) Daemon
          Loaded: loaded (/lib/systemd/system/smartd.service; enabled)
          Active: failed
          CGroup: name=systemd:/system/smartd.service
Comment 1 Manuel Hiebel 2012-01-23 12:14:24 CET
Hi, thanks for reporting this bug.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Keywords: (none) => Triaged
CC: (none) => dmorganec
Blocks: (none) => 2120
Assignee: bugsquad => mageia

Comment 2 Damien Lallement 2012-01-23 23:53:05 CET
Thanks for the report.
Can you test the new package please and close if fixed.
http://svnweb.mageia.org/packages?view=revision&revision=200470

Status: NEW => ASSIGNED

Comment 3 Curtis Hildebrand 2012-01-25 07:35:59 CET
Fixed.  Thanks.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED