24 lines
546 B
Plaintext
24 lines
546 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
description="Graphite-Web Daemon"
|
|
supervisor=supervise-daemon
|
|
respawn_period="${respawn_period:-30}"
|
|
term_type="${term_type:-linux}"
|
|
command=/usr/bin/gunicorn
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
command_user="graphite-web:graphite-web"
|
|
command_args="graphite.wsgi --pythonpath=/usr/share/graphite-web/webapp/ -w${GRAPHITE_WEB_WORKERS:-1} -b ${GRAPHITE_WEB_PORT:-127.0.0.1:8081}"
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
start_pre() {
|
|
export EINFO_QUIET="${quiet:-yes}"
|
|
}
|
|
|
|
stop_pre()
|
|
{
|
|
export EINFO_QUIET="${quiet:-yes}"
|
|
}
|