User start daemon .pid Permission denied
Posted
by
kornnflake
on Server Fault
See other posts from Server Fault
or by kornnflake
Published on 2012-10-27T14:13:37Z
Indexed on
2012/10/27
17:03 UTC
Read the original article
Hit count: 261
Trying to start a unicorn daemon as a non-root user but failing hard.
Unicorn gives the the following error:
directory for pid=/var/run/sinatra_test/sinatra_test.pid not writable
So I made the following:
sudo mkdir /var/run/sinatra_test
sudo chown ruby:www-data /var/run/sinatra_test
sudo chmod g+w /var/run/sinatra_test
ls -ld /var/run/sinatra_test returns:
drwxrwxr-x 2 ruby www-data 60 Oct 27 09:55 /var/run/sinatra_test
What am I missing? Still getting Permission denied errors.
© Server Fault or respective owner