aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sysstat/sysstat
diff options
context:
space:
mode:
authorLi xin <lixin.fnst@cn.fujitsu.com>2015-06-12 14:13:40 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-02 23:46:08 +0100
commit3278af2266a078351a4f614c79bfbea2514566a1 (patch)
tree897263dc637f077394885140ff287a44b9fe1273 /meta/recipes-extended/sysstat/sysstat
parent5d8f865d34aef6fb821e025da56a0a3c0656c49d (diff)
downloadopenembedded-core-contrib-3278af2266a078351a4f614c79bfbea2514566a1.tar.gz
sysstat: add systemd service files
Add sysstat.service to support systemd systems. Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sysstat/sysstat')
-rw-r--r--meta/recipes-extended/sysstat/sysstat/sysstat.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/recipes-extended/sysstat/sysstat/sysstat.service b/meta/recipes-extended/sysstat/sysstat/sysstat.service
new file mode 100644
index 0000000000..aff07109f5
--- /dev/null
+++ b/meta/recipes-extended/sysstat/sysstat/sysstat.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Resets System Activity Logs
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+User=root
+ExecStart=@LIBDIR@/sa/sa1 --boot
+
+[Install]
+WantedBy=multi-user.target
+