eth0izzle / Needl

Take back your privacy. Lose yourself in the haystack.
https://www.darkport.co.uk
MIT License
564 stars 55 forks source link

Write upstart/init scripts #1

Open eth0izzle opened 8 years ago

eth0izzle commented 8 years ago

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?

skos-ninja commented 7 years ago

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?

eth0izzle commented 7 years ago

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

skos-ninja commented 7 years ago

Sure more than happy to!

0x647262 commented 7 years ago

Systemd / sysvinit scripts cover 99% of users.

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

Ekultek commented 6 years ago

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

0x647262 commented 6 years ago

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?