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 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

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

  • Loading branch information
SimonSapin committed Jul 12, 2018
commit 42bdb4d8349947c4625bf80ecc06449f8ccb6fb3
@@ -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' %}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.