|
12345678910111213141516171819202122232425 |
- # This template file assumes the buildbot worker lives in a subdirectory od
- # /var/lib/buildbot
- # Usage:
- # cd /var/lib/buildbot
- # buildbot-worker create-worker [directory] [master hostname] [name] [password]
- # systemctl enable --now buildbot-worker@[directory].service
- [Unit]
- Description=Buildbot Worker
- After=network.target
-
- [Service]
- User=%i
- Group=%i
- WorkingDirectory=~
- ExecStart=/usr/local/bin/buildbot-worker start --nodaemon buildbot-worker
- # if using EC2 Latent worker, you want to uncomment following line, and comment out the Restart line
- # ExecStopPost=shutdown now
- Restart=always
- ProtectSystem=full
- ProtectHome=yes
- PrivateDevices=yes
- PrivateTmp=yes
-
- [Install]
- WantedBy=multi-user.target
|