2
Description=CheckBox SRU mini CI notifier
3
After=network-online.target
4
# CheckBox mini CI notifier.
6
# This waits for a the "Network is Online" target and then
7
# uses curl to post the test starting notification
8
# to a configurable CGI URL. The CGI can do whatever it
9
# wants, such as checking the test is run or not.
11
# An /etc/default/plainbox-ci-mailer config file
12
# with the SUBMIT_CGI variable defined is expected.
16
#Type=simple # It does not work with this
17
Environment=CHECKBOX_SERVER_CONF=/lib/systemd/system/checkbox-sru.service
18
Environment=CHECKBOX_DESKTOP_XDG=/etc/xdg/autostart/checkbox-sru.desktop
19
ExecStartPre=/bin/sh -ec '[ -f /etc/default/plainbox-ci-mailer ] || exit 1'
20
ExecStartPre=/bin/sh -ec '[ -x /usr/bin/curl ] || exit 1'
21
ExecStart=/usr/bin/checkbox-ci-script.sh notification
24
WantedBy=multi-user.target