blob: 8b45c0c7ed5da04a5940d3118c485d62510a64c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
pidfile=${COUCHDB_PID_FILE}
command=${EXEC:-/opt/couchdb/bin/couchdb}
command_args="-o /dev/null -e /dev/null ${COUCHDB_OPTIONS}"
start_stop_daemon_args="--background --make-pidfile --user ${COUCHDB_USER}"
depend() {
need net
}
start_pre() {
checkpath -q -d -m 0755 -o ${COUCHDB_USER} /run/couchdb
}
stop_post() {
killall -u ${COUCHDB_USER%:*} epmd
}
|