handshake-org / hsd

Handshake Daemon & Full Node
Other
1.94k stars 281 forks source link

systemd Service File #243

Open tynes opened 5 years ago

tynes commented 5 years ago

It would be nice to have a base systemd service file hsd.service included in the etc directory along with instructions on how to use it. This would allow users to start hsd as a service and allow for features such as automatic restart.

kilpatty commented 5 years ago

I was looking into this earlier today. Should we assume that the workflow is the user installing hsd globally via npm? Seems like service files expect a path (although we can technically use which hsd, I believe).

boymanjor commented 5 years ago

I think that a systemd service file, as well as any other service manager files, is best located within OS package manager code, e.g. a Homebrew formula or pacman package. This removes the need to assume how a user is installing hsd. Perhaps, we could include example files and make it clear that a user cannot use the example as-is, i.e. they will need to specify installation paths, etc.

mslipper commented 5 years ago

If anyone needs one of these let me know. I've built one for our internal HSD infrastructure.