eth0izzle/Needl

Write upstart/init scripts

eth0izzle opened this issue · 6 comments

Currently Needl will daemonize when passing in the --daemon flag. We should create the appropriate scripts so the OS can handle running it as a service.

We need to explore the different options and their pros/cons. Upstart, init.d or service?

Late to this but I would it also be worth looking at making this a docker image for us that like to run everything in containers?

@skos-ninja great idea! I'll create a separate issue - would you like to take it on?

Sure more than happy to!

Systemd / sysvinit scripts cover 99% of users.

I'll be opening a PR for the systemd unit shortly.

Is running this as a service really a good idea? The failure that can occur outweighs the need for a service. I think daemonized should be more the enough. We’re talking possible terrible issues from a service script

Is running this as a service really a good idea?

It's no worse than running it standalone... The idea is that the service manager should run the process as an unprivileged user instead of running as root.

I'll update my pull request to reflect that.

The failure that can occur outweighs the need for a service

Elaborate?

I think daemonized should be more the enough. We’re talking possible terrible issues from a service script

Elaborate?