| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Mon, 17 Jul 2023 22:51:43 +0200 | |
| changeset 133 | 42a4a2f8c790 |
| 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 Web Service |
|
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=forking |
|
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 |
EnvironmentFile=-/etc/default/crashtest |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
15 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
16 |
;PrivateTmp=yes |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
17 |
;JoinsNamespaceOf= |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
18 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
19 |
RuntimeDirectory=crashtest |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
20 |
RuntimeDirectoryMode=0755 |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
21 |
PIDFile=/run/crashtest/hypnotoad.pid |
|
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 |
WorkingDirectory=/var/lib/crashtest |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
24 |
ExecStart=/usr/bin/hypnotoad /usr/bin/CrashTest |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
25 |
ExecStop=/usr/bin/hypnotoad -s /usr/bin/CrashTest |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
26 |
ExecReload=/usr/bin/hypnotoad /usr/bin/CrashTest |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
27 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
28 |
[Install] |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
29 |
WantedBy=multi-user.target |