Needl icon indicating copy to clipboard operation
Needl copied to clipboard

Write upstart/init scripts

Open eth0izzle opened this issue 8 years ago • 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?

eth0izzle avatar Nov 15 '16 22:11 eth0izzle

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 avatar Jun 16 '17 11:06 skos-ninja

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

eth0izzle avatar Jun 16 '17 14:06 eth0izzle

Sure more than happy to!

skos-ninja avatar Jun 16 '17 14:06 skos-ninja

Systemd / sysvinit scripts cover 99% of users.

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

0x647262 avatar Jun 16 '17 14:06 0x647262

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

Ekultek avatar Dec 13 '17 03:12 Ekultek

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?

0x647262 avatar Dec 13 '17 04:12 0x647262