I usually do a sudo service gunicorn start
to start the gunicorn service, so my app whenever needs to create a folder the ownership belongs to the user logged in when ran the command and the group belongs to sudo. My question is, why when I try to call the service as service gunicorn start
I get the error
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.20" (uid=1001 pid=10684 comm="start gunicorn ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init ")
I know that it has to do with permissions but I can not fully understand what this message mean and how I can call the service without sudo
. Thank you in advance