extras/systemd/crashtest_minion.service
author Vincent Tondellier <tonton+hg@team1664.org>
Sun, 21 Feb 2016 22:32:27 +0100
changeset 111 f827f3c50dcf
permissions -rw-r--r--
Add examples (config, systemd and uploader)

[Unit]
Description=CrashTest Jobs Manager
Requires=network.target
After=network.target
ConditionPathExists=/etc/crashtest/crash_test.conf

[Service]
Type=simple
User=crashtest
RemainAfterExit=yes
ProtectSystem=full

Environment=MOJO_CONFIG=/etc/crashtest/crash_test.conf
Environment=JOBS=2
EnvironmentFile=-/etc/default/crashtest

;PrivateTmp=yes
;JoinsNamespaceOf=

WorkingDirectory=/var/lib/crashtest
ExecStart=/usr/bin/CrashTest minion worker -m production -j $JOBS

[Install]
WantedBy=multi-user.target