-
Notifications
You must be signed in to change notification settings - Fork 233
Add a unit file to manage helios-agent service #1265
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 Report
@@ 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 Report
@@ 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
1b11bd8
to
6748262
Compare
This sets up helios-agent to be configured as a daemon and managed via systemd.
@mattnworb