about summary refs log tree commit diff
path: root/services
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-08-21 11:31:13 +0200
committerJuan RP <xtraeme@gmail.com>2014-08-21 11:31:13 +0200
commitb2de501d4bd7601298705484e701b0734f5e4104 (patch)
tree1cf70bdfa792d20d5d3dcf7f3b101a26419cd1ca /services
parentdbb14e7875295da0e6dfe4a9c520ce705dee8f8d (diff)
downloadrunit-void-b2de501d4bd7601298705484e701b0734f5e4104.tar.gz
runit-void-b2de501d4bd7601298705484e701b0734f5e4104.tar.xz
runit-void-b2de501d4bd7601298705484e701b0734f5e4104.zip
New service: atop.
Diffstat (limited to 'services')
-rwxr-xr-xservices/atop/run3
l---------services/atop/supervise1
2 files changed, 4 insertions, 0 deletions
diff --git a/services/atop/run b/services/atop/run
new file mode 100755
index 0000000..7f6aeb8
--- /dev/null
+++ b/services/atop/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+mkdir -p /var/log/atop || exit 1
+exec atop -a -w /var/log/atop/atop_$(date +%Y%m%d) 600
diff --git a/services/atop/supervise b/services/atop/supervise
new file mode 120000
index 0000000..364bc1d
--- /dev/null
+++ b/services/atop/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.atop
\ No newline at end of file