summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sysstat/sysstat
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-07-12 13:49:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-15 09:26:46 +0100
commit559465348de5210c7d29361f79666b62bd6660aa (patch)
tree8de06d46a8f60bbb3b68f6fc9666c1869b5e1312 /meta/recipes-extended/sysstat/sysstat
parent227125b96ad6fb0cf6e259e787d83415993db847 (diff)
downloadopenembedded-core-559465348de5210c7d29361f79666b62bd6660aa.tar.gz
Revert "sysstat: use service file from source codes"
This doesn't actually work as the unit file is only installed if cron support is enabled. This reverts commit 721f09d4897425c7131470bd756eee1b90937feb. Signed-off-by: Ross Burton <ross.burton@intel.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
+