mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
generic-worker on macOS: move generic-worker.plist template to a separate file
This commit is contained in:
parent
fe0e1ae7d3
commit
ef4e72ca7d
3 changed files with 25 additions and 33 deletions
18
etc/taskcluster/macos/states/generic-worker.plist.jinja
Normal file
18
etc/taskcluster/macos/states/generic-worker.plist.jinja
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?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>net.generic.worker</string>
|
||||
<key>KeepAlive</key> <true/>
|
||||
<key>StandardOutPath</key> <string>stdout.log</string>
|
||||
<key>StandardErrorPath</key> <string>stderr.log</string>
|
||||
<key>WorkingDirectory</key> <string>{{ home }}</string>
|
||||
<key>UserName</key> <string>{{ user }}</string>
|
||||
<key>ProgramArguments</key> <array>
|
||||
<string>{{ bin }}/generic-worker</string>
|
||||
<string>run</string>
|
||||
<string>--config</string>
|
||||
<string>{{ etc }}/config.json</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
|
@ -77,38 +77,12 @@
|
|||
file.managed:
|
||||
- mode: 644
|
||||
- template: jinja
|
||||
- contents: >-
|
||||
<?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>net.generic.worker</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>{{ bin }}/generic-worker</string>
|
||||
<string>run</string>
|
||||
<string>--config</string>
|
||||
<string>{{ etc }}/config.json</string>
|
||||
</array>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>{{ home }}</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>{{ user }}</string>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>stdout.log</string>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>stderr.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
- source: salt://generic-worker.plist.jinja
|
||||
- context:
|
||||
bin: {{ bin }}
|
||||
etc: {{ etc }}
|
||||
home: {{ home }}
|
||||
user: {{ user }}
|
||||
|
||||
net.generic.worker:
|
||||
service.running:
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
base:
|
||||
'mac*':
|
||||
- generic-worker
|
||||
- generic-worker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue