Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Add a unit file to manage helios-agent service #1265

Merged
merged 2 commits into from
Jan 10, 2019
Merged

Conversation

vbhavsar
Copy link
Contributor

This sets up helios-agent to be configured as a daemon and managed via systemd.

@mattnworb

Copy link
Member

@mattnworb mattnworb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a unit file for helios-master too?

@@ -0,0 +1,7 @@
#!/bin/bash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be good to add some comments here about why we had to add this wrapper script (since the EnvironmentFile etc directives in the unit file don't support running arbitrary shell scripts)

@@ -0,0 +1,9 @@
[Unit]
Description=Helios agent daemon
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we also want to add a After=network.target to this section to signal that this service should be started after the network is available

@codecov
Copy link

codecov bot commented Jan 10, 2019

Codecov Report

Merging #1265 into master will decrease coverage by 0.06%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1265      +/-   ##
============================================
- Coverage     52.95%   52.89%   -0.07%     
+ Complexity     1646     1645       -1     
============================================
  Files           268      268              
  Lines         13104    13104              
  Branches       1499     1499              
============================================
- Hits           6939     6931       -8     
- Misses         5652     5657       +5     
- Partials        513      516       +3

@codecov
Copy link

codecov bot commented Jan 10, 2019

Codecov Report

Merging #1265 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1265      +/-   ##
============================================
- Coverage     52.95%   52.93%   -0.03%     
  Complexity     1646     1646              
============================================
  Files           268      268              
  Lines         13104    13104              
  Branches       1499     1499              
============================================
- Hits           6939     6936       -3     
- Misses         5652     5655       +3     
  Partials        513      513

This sets up helios-agent to be configured as a daemon and managed via systemd

Change unit file install path

Add comment to wrapper script

Add `After` directive to unit file
@vbhavsar vbhavsar merged commit 5ac4abb into master Jan 10, 2019
@vbhavsar vbhavsar deleted the vishal/systemd branch January 10, 2019 22:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants