aboutsummaryrefslogtreecommitdiff
path: root/bbot/bbot-agent@.service
blob: 496692f9c5a5b66fdd72087ad6d57abcd49e6a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[Unit]
Description=bbot agent for %I
After=default.target

[Service]
Type=simple

Environment=CPU=1
Environment=RAM=1048576
Environment=TOOLCHAIN_ID=123abc
Environment=TOOLCHAIN_NUM=1

ExecStart=/build/bbot/%i/bin/bbot-agent --systemd-daemon \
  --cpu ${CPU} \
  --ram ${RAM} \
  %i \
  ${TOOLCHAIN_NUM} \
  ${TOOLCHAIN_ID}

User=build
Group=build
WorkingDirectory=~

[Install]
WantedBy=default.target