saving uncommitted changes in /etc prior to emerge run

This commit is contained in:
2015-05-08 13:56:04 +02:00
committed by root
parent 5c57b79cf6
commit a7c4550aaa
6 changed files with 502 additions and 0 deletions

17
init.d/couchdb Executable file
View File

@@ -0,0 +1,17 @@
#!/sbin/runscript
# Copyright 1999-2013 Dirkjan Ochtman
# Distributed under the terms of the Apache License, Version 2.0
pidfile=${COUCHDB_PID_FILE}
command=${EXEC:-/usr/bin/couchdb}
command_args="-b -o ${COUCHDB_STDOUT_FILE} -e ${COUCHDB_STDERR_FILE} -p ${pidfile} ${COUCHDB_OPTIONS}"
start_stop_daemon_args="--user ${COUCHDB_USER}"
depend() {
need net
}
start_pre() {
checkpath -q -d -m 0755 -o ${COUCHDB_USER} /var/run/couchdb
}