summaryrefslogtreecommitdiffstats
path: root/remote/modules/idleaction/data/etc
diff options
context:
space:
mode:
authorSimon Rettberg2013-12-22 00:41:31 +0100
committerSimon Rettberg2013-12-22 00:41:31 +0100
commit678ccfcec84fe188f394ed0ea71801aac13d0f66 (patch)
tree14f644bc95cbee7aca878839cefda17f7bb20b75 /remote/modules/idleaction/data/etc
parentMerge branch 'master' of simonslx:openslx-ng/tm-scripts (diff)
downloadtm-scripts-678ccfcec84fe188f394ed0ea71801aac13d0f66.tar.gz
tm-scripts-678ccfcec84fe188f394ed0ea71801aac13d0f66.tar.xz
tm-scripts-678ccfcec84fe188f394ed0ea71801aac13d0f66.zip
[idleaction] New module (WORK IN PROGESS)
idleaction is supposed to check if the machine is in use and trigger certain actions if not It can terminate sessions that have been idle for a certain amount of time, and it can shutdown the computer if no user logged in for some time. In the future it will also be able to forcefully shut down the computer at a given time of day.
Diffstat (limited to 'remote/modules/idleaction/data/etc')
-rw-r--r--remote/modules/idleaction/data/etc/cron.d/openslx-idleaction6
1 files changed, 6 insertions, 0 deletions
diff --git a/remote/modules/idleaction/data/etc/cron.d/openslx-idleaction b/remote/modules/idleaction/data/etc/cron.d/openslx-idleaction
new file mode 100644
index 00000000..66dbcd5c
--- /dev/null
+++ b/remote/modules/idleaction/data/etc/cron.d/openslx-idleaction
@@ -0,0 +1,6 @@
+# Trigger scripts that checks idle status of machine and triggers actions
+
+SHELL=/bin/ash
+
+*/5 * * * * root /opt/openslx/scripts/idleaction-cron_script
+