-
Notifications
You must be signed in to change notification settings - Fork 235
[mig agent] use service package from github (Bugzilla #1135542) #114
Comments
Do you mean changing jvehent/service-go to kardianos/service? kardianos/service removed the NewService function, and added a service.New one, but this one takes an Interface (Start, Stop) which I have yet to figure out how to adapt to our use case. |
Yes, that's what I mean. I looked at the new interfaces from kardianos/service a while back, but the changes were more difficult to implement than I had initially anticipated. Still, it's something to look into. |
I think we might still want to fork service package, we can use the upstream version, but there are some changes that are convenient for us: Service package allows us to "Install" a service, giving the "Start at Boot" and "Restart on Crash" capability. The functionallity is already working on OSX and systemd as it is. I created an issue in the Service project asking to make it configurable. |
Once that is solved, the idea would be to Create the Service and Install it on the sistem, right? Installing it in the system implies creating the corresponding file so the process is run at startup and restarts after crashes. Should it use a flag to specify this behaviour? |
I don't think a flag is needed. The current approach is a bit brute-forcy, but works: if the process isn't currently running as a service ( |
Migrated from https://bugzilla.mozilla.org/show_bug.cgi?id=1135542
Assigned to: Julien Vehent [:ulfr]
On 2015-02-22 16:48:59 -0800, Julien Vehent [:ulfr] wrote:
The text was updated successfully, but these errors were encountered: