summaryrefslogtreecommitdiff
path: root/ioslay-mgr.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ioslay-mgr.sh')
-rwxr-xr-xioslay-mgr.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/ioslay-mgr.sh b/ioslay-mgr.sh
index 1241a68..56ab849 100755
--- a/ioslay-mgr.sh
+++ b/ioslay-mgr.sh
@@ -1,5 +1,15 @@
1#!/bin/bash 1#!/bin/bash
2 2
3UNIT_NAME=ioslay
4if [ "$1" = launch-unit ]
5then
6 if systemctl --user is-active "$UNIT_NAME"
7 then systemctl --user restart "$UNIT_NAME"
8 else systemd-run --user -u "$UNIT_NAME" "$0"
9 fi
10 exit
11fi
12
3if [ -e /usr/lib/bash/sleep ] 13if [ -e /usr/lib/bash/sleep ]
4then 14then
5 enable -f /usr/lib/bash/sleep sleep 15 enable -f /usr/lib/bash/sleep sleep