edac-utils: fix systemd service

Fix edac-utils systemd service file so that `systemctl stop edac' doesn't
fail.

Remove the ExecStop line as there's no '--unload' option for edac-ctl.
Also, disable edac service by default.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit caf48f2ea5)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Qi.Chen@windriver.com
2016-11-04 16:36:58 +08:00
committed by Armin Kuster
parent 54b566a00a
commit ebc3e16c7d
2 changed files with 1 additions and 1 deletions
@@ -44,3 +44,4 @@ do_install_append() {
}
SYSTEMD_SERVICE_${PN} = "edac.service"
SYSTEMD_AUTO_ENABLE_${PN} = "disable"
@@ -4,7 +4,6 @@ Description=Initialize EDAC Drivers For Machine Hardware
[Service]
Type=oneshot
ExecStart=@SBINDIR@/edac-ctl --register-labels
ExecStop=@SBINDIR@/edac-ctl --unload
RemainAfterExit=yes
[Install]