| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Mon, 17 Jul 2023 22:52:42 +0200 | |
| changeset 134 | 26ba2717da6e |
| parent 111 | f827f3c50dcf |
| permissions | -rw-r--r-- |
|
111
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
1 |
[Unit] |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
2 |
Description=CrashTest Jobs Manager |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
3 |
Requires=network.target |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
4 |
After=network.target |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
5 |
ConditionPathExists=/etc/crashtest/crash_test.conf |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
6 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
7 |
[Service] |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
8 |
Type=simple |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
9 |
User=crashtest |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
10 |
RemainAfterExit=yes |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
11 |
ProtectSystem=full |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
12 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
13 |
Environment=MOJO_CONFIG=/etc/crashtest/crash_test.conf |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
14 |
Environment=JOBS=2 |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
15 |
EnvironmentFile=-/etc/default/crashtest |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
16 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
17 |
;PrivateTmp=yes |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
18 |
;JoinsNamespaceOf= |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
19 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
20 |
WorkingDirectory=/var/lib/crashtest |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
21 |
ExecStart=/usr/bin/CrashTest minion worker -m production -j $JOBS |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
22 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
23 |
[Install] |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
24 |
WantedBy=multi-user.target |