Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install a systemd service file, not upstart, on Ubuntu 16.04 #853

Merged
merged 2 commits into from Jul 12, 2018
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -0,0 +1,15 @@
[Unit]
Description=Buildbot Worker
Wants=network.target
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/buildslave start --nodaemon {{ common.servo_home }}/buildbot/slave
Restart=always
User=servo
Group=servo
Environment="HOME={{ common.servo_home }}"

[Install]
WantedBy=multi-user.target
@@ -43,7 +43,7 @@ buildbot-slave-dependencies:
- watch_in:
- service: buildbot-slave
{% else %}
{% elif grains['osrelease'] == '14.04' %}
/etc/init/buildbot-slave.conf:
file.managed:
@@ -59,6 +59,22 @@ buildbot-slave-dependencies:
- service: buildbot-slave
{% endif %}
{% else %}
/etc/systemd/system/buildbot-slave.service:
file.managed:
- source: salt://{{ tpldir }}/files/buildbot-slave.service
- user: root
- group: root
- mode: 644
- template: jinja
- context:
common: {{ common }}
{% if grains.get('virtual_subtype', '') != 'Docker' %}
- watch_in:
- service: buildbot-slave
{% endif %}
{% endif %}
{% if grains.get('virtual_subtype', '') != 'Docker' %}
@@ -1,10 +1,8 @@
kvm-dependencies:
pkg.installed:
- pkgs:
# We don’t actually use the contents of this package,
# installing it makes /dev/kvm be usable by the 'kvm' Unix group
# (and makes that group exist).
- libvirt-bin
# Also creates the 'kvm' group and gives it permissions to /dev/kvm
- qemu-kvm

kvm-group:
user.present:
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.