extras/systemd/crashtest_minion.service
author Vincent Tondellier <tonton+hg@team1664.org>
Sun, 18 Dec 2016 21:11:27 +0100
changeset 122 8692800ec9ba
parent 111 f827f3c50dcf
permissions -rw-r--r--
Use Dzil PkgVersion Add a newline after each package to make Dist::Zilla happy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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