Re: Is This A Runit Bug (Enabled but Cannot Start- Unlike Others)
Reply #4 –
First, a quote from the stubby man page:
as with any service, you need to at least check what is the default configuration for the service, as suggested by Artist.
Checking out /etc/runit/sv/stubby/run gives:
$ cat /etc/runit/sv/stubby/run
#!/bin/sh
exec chpst -u stubby stubby
in other words, that service is run not as root user (there is no "sudo" user, sudo is a privilege escalating program, but that is something a "technical/advanced user" should know), but as ordinary user account "stubby" reserved for running stubby. You can check its existence by doing
$ grep stubby /etc/passwd
Many services use this approach, as it is more secure. However, ordinary user accounts cannot normally bind ports below 1024. This is by design. So, you will need to configure stubby to use a port above 1024.