takama / daemon

A daemon package for use with Go (golang) services
MIT License
1.96k stars 291 forks source link

How to install daemon without sudo? #77

Closed FrontMage closed 6 years ago

FrontMage commented 6 years ago

I'm writing a pm2 like program, the service needs to be a daemon and it's better running without sudo.

Is there a way to do this?

dmercer-google commented 6 years ago

Generally the daemon startup script allows you to specify the user you want the daemon to run as. Where that script is depends on the os you are using.

FrontMage commented 6 years ago

On Arch Linux, I managed to do that with a custom system.d unit. Thanks for the help.

Closing it.