|
- # 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=/var/lib/buildbot-worker/%i
- ExecStart=/usr/local/bin/buildbot-worker start --nodaemon 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
|