Monit runs with root, but i don't want to start my processes as root.. like mysql, mongrel, apache..
Asked
Active
Viewed 2.9k times
4 Answers
2
i have found a answer.. i could do a: start_program = "su -c 'command here' USERiWANTtoUSE".. :)
Guilherme
- 761
0
You can do this to run as another user a specific command
exec /bin/su - userName -c "/usr/bin/nginx start"
This will run that command " " as the user you defined
Pian0_M4n
- 178
-1
What operating system / distro are you using? How did you install Monit? Most dsitros 'do the right thing' and make sure things don't start as root.
Amandasaurus
- 33,461