FS#27725 - [couchdb] Wrong /var/run/couchdb ownership

Attached to Project: Community Packages
Opened by Hilton Medeiros (hilton) - Monday, 26 December 2011, 19:28 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 26 December 2011, 21:26 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Hello,
couchdb cannot start because the init script creates the /var/run/couchdb with
root but runs the instance with the $COUCHDB_USER, that is 'couchdb' by default, and I get:

::Starting [BUSY]
Apache CouchDB needs write permission on the PID file: /var/run/couchdb/couchdb.pid [FAIL]


To fix that, I just added the following line in the start_couchdb function:

mkdir -p "$RUN_DIR"
+ chown $COUCHDB_USER "$RUN_DIR"

Thanks in advance,
Hilton


Additional info:
* couchdb 1.2.0-1git20111115
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 26 December 2011, 21:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  chown added

Loading...