-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcom.custom.diskencrypter.volumewatcher.plist
More file actions
53 lines (43 loc) · 1.36 KB
/
com.custom.diskencrypter.volumewatcher.plist
File metadata and controls
53 lines (43 loc) · 1.36 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.custom.diskencrypter.volumewatcher</string>
<key>ProgramArguments</key>
<array>
<string>/Library/Application Support/Custom/DiskEncrypter_Enhanced.sh</string>
</array>
<!-- Watch the /Volumes directory for new mounts -->
<key>WatchPaths</key>
<array>
<string>/Volumes</string>
</array>
<!-- Run at system boot -->
<key>RunAtLoad</key>
<true/>
<!-- Throttle interval: wait 5 seconds between runs to avoid rapid re-triggering -->
<key>ThrottleInterval</key>
<integer>5</integer>
<!-- Run as root (required for disk operations) -->
<key>UserName</key>
<string>root</string>
<!-- Logging paths for debugging -->
<key>StandardOutPath</key>
<string>/var/log/diskencrypter.log</string>
<key>StandardErrorPath</key>
<string>/var/log/diskencrypter_error.log</string>
<!-- Process type (Adaptive is good for scripts) -->
<key>ProcessType</key>
<string>Adaptive</string>
<!-- Nice level (lower priority so it doesn't interfere with system) -->
<key>Nice</key>
<integer>10</integer>
<!-- Environment variables -->
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
</dict>
</plist>