-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathboot-shutdown-script.plist
44 lines (32 loc) · 1019 Bytes
/
boot-shutdown-script.plist
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
<?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>
<!--
You should customize the following placeholders:
- BOOT.SHUTDOWN.SERVICE : If you don't know, leave it as is
- SCRIPT_PATH : the path where the boot-shutdown.sh script is stored.
- LOG_PATH : the path where the logs are stored. If you don't care about logs, use: /tmp
-->
<key>Label</key>
<string>BOOT.SHUTDOWN.SERVICE</string>
<key>ProgramArguments</key>
<array>
<string>SCRIPT_PATH/boot-shutdown.sh</string>
</array>
<!--
set RunAtLoad false if you don't want that script starts
automatically every time your mac os x boots
-->
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>SCRIPT_PATH</string>
<key>StandardOutPath</key>
<string>LOG_PATH/boot-shutdown.log</string>
<key>StandardErrorPath</key>
<string>LOG_PATH/boot-shutdown.err</string>
<key>ExitTimeOut</key>
<integer>600</integer>
</dict>
</plist>