diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-09-25 16:48:38 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-09-26 05:42:54 +0200 |
commit | 0d01e1b72333f49c29d1a27ad844c4cd9f90341c (patch) | |
tree | 7fd294922793df3548be50bcf2b1815db01794fb /meta-oe/recipes-extended/smartmontools/files/smartd.service | |
parent | 3468c59c5cc382a66621bace78648479dc853db0 (diff) | |
download | meta-openembedded-contrib-0d01e1b72333f49c29d1a27ad844c4cd9f90341c.tar.gz |
smartmontools: add systemd service file
Add systemd service file for smartmontools.
The service is disabled by default.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/smartmontools/files/smartd.service')
-rw-r--r-- | meta-oe/recipes-extended/smartmontools/files/smartd.service | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/smartmontools/files/smartd.service b/meta-oe/recipes-extended/smartmontools/files/smartd.service new file mode 100644 index 0000000000..f3db946c81 --- /dev/null +++ b/meta-oe/recipes-extended/smartmontools/files/smartd.service @@ -0,0 +1,12 @@ +[Unit] +Description=Self Monitoring and Reporting Technology (SMART) Daemon +After=syslog.target + +[Service] +EnvironmentFile=-@SYSCONFDIR@/smartmontools +ExecStart=@SBINDIR@/smartd -n $smart_opts +ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID +StandardOutput=syslog + +[Install] +WantedBy=multi-user.target |