/
python_sleep.conf
123 lines (99 loc) · 4.51 KB
/
python_sleep.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Command: Explanation: Possible Value/Values
# execute: choose if script runs or not: True / False
# mode: choose mode for sleep: shutdown / sleep
# excluded_days: choose day/days that are excluded from sleep action, multiple days can be separate by ",":
# monday, tuesday, wednesday, thursday, friday, saturday, sunday
# excluded_hours: choose hours, only full hours, that are excluded from sleep action, multiple hours can be separate by ",":
# 13-14 or 13-18 or 12-13, 15-19
# excluded_local_ip: exclude ip/ips for local user, for example ip from android app, multiple ips can be separate by ",": 192.168.4.20
# excluded_remote_ip: exclude ip/ips for remote user, multiple ips can be separate by ",": 192.168.4.20
# wait_array_inactivity: check array disks if disks are busy, if set array disks will be automatic add to "used disks",
# if you only want check some specific disk from array, let this option be False and add disk manually to "used_disks":
# True / False
# wait_disk_inactivity: check if disks are busy, must be always True if you want check some disk: True / False
# wait_user_login_inactivity: check if remote user are logged in, local user check not possible: True / False
# wait_user_login_inactivity_local: wait for user inactivity local ,excluded ip from excluded option: True / False
# wait_user_login_inactivity_remote: wait for user inactivity remote ,excluded ip from excluded option: True / False
# wait_network_inactivity: check if there is some specific network traffic: True / False
# wait_host_inactivity: check for host/hosts activity: True / False
# wait_smb_inactivity: check for smb traffic: True / False
# add_cache_drives: adds automatic **all** cache drives to "used_disks": True / False
# delay_after_inactivity: delay after all checks are have no activity to shutdown/sleep in minutes: 30
# ethernet_interfaces: ethernet interface to watch for network traffic activity, multiple interfaces possible,
# separate by ",", if empty all interfaces will be watch (not recommend), choose your interface from
# "ethernet_interfaces" at config file: eth0 or eth0, eth1
# network_idle_threshold: network idle speed in kb/s for network activity: 300
# hosts: host/hosts to watch for host activity, multiple hosts possible, separate by ",": 10.10.10.5 or 10.10.10.5, 192.168.5.2
# smb_shares: choose shares to watch for smb activity, if empty all shares (user, disk) will be watched, choose share from
# "user_shares" or "disk_shares" in config file, separate by ",": music or music, video, data
# wol_options_before_sleep: wol option to be set before sleep, works only on sleep command: p,u,m,b,g
# wol_interface: interface to set wol options to: eht0
# log_to: choose where to log to:
# 1 = logs to flash (/boot/logs/python_sleep.log)
# 2 = logs to syslog (/var/log/syslog)
# 3 = logs to flash and syslog
# 4 = logs to console
# debug: debugging on/off: True / False
# check_for_new_disks: check for new added disks, shares, ethernet interfaces to be added to conf file in minutes: 1440
[MAIN_SETTINGS]
execute = False
mode = shutdown
excluded_days = ""
excluded_hours = ""
excluded_local_ip = ""
excluded_remote_ip = ""
wait_array_inactivity = False
wait_disk_inactivity = False
wait_user_login_inactivity = False
wait_user_login_inactivity_local = False
wait_user_login_inactivity_remote = False
wait_network_inactivity = False
wait_host_inactivity = False
wait_smb_inactivity = False
add_cache_drives = False
delay_after_inactivity = 30
ethernet_interfaces = ""
network_idle_threshold = 400
hosts = ""
smb_shares = ""
wol_options_before_sleep = ""
wol_interface = ""
log_to = 1
debug = False
check_for_new_disks = 1440
[DEBUG]
all = False
smb = False
network = False
host = False
sleep_timer = False
disk = False
user = False
sys_log = False
disk_check = False
config = False
parity = False
mover = False
info = False
logger = False
process = False
# all disks that are monitoring
# add new disk as following: mount_point = disk name e.g sdk = WD_......
# array disks will be auto added if wait_array_inactivity is set
[used_disks]
# all disk that are not monitoring
[unused_disks]
# list of all disks from array
[array_disks]
# list of all disks from unassigned_disks
[unassigned_disks]
# list of all disks from cache
[cache_disks]
# list of flash drive
[flash_drive]
# list of user shares
[user_shares]
# list of disk shares
[disk_shares]
# list of all ethernet_interfaces
[ethernet_interfaces]