Commit dd96b3d8 authored by anton's avatar anton
Browse files

fix initfile

parent 62918805
......@@ -9,14 +9,19 @@ RELAY_CONFIG=${RELAY_CONFIG:-/etc/prometheus-graphite-relay.toml}
command="/usr/bin/prometheus-graphite-relay"
command_args="-config \"${RELAY_CONFIG}\""
command_user=${RELAY_USER:-prometheus-graphite-relay}
pidfile=${RELAY_PIDFILE:-/var/run/${SVCNAME}.pid}
logfile=${RELAY_LOGFILE:-/var/log/${SVCNAME}.log}
start_stop_daemon_args=${RELAY_SSDARGS:-"--make-pidfile --background \
logfile=${RELAY_LOGFILE:-/var/log/${SVCNAME}/${SVCNAME}.log}
command_background="yes"
start_stop_daemon_args=${RELAY_SSDARGS:-"--make-pidfile \
--stdout ${logfile} \
--stderr ${logfile}"}
user=${RELAY_USER:-prometheus-graphite-relay}
group=${RELAY_GROUP:-prometheus-graphite-relay}
depend() {
need net
}
start_pre() {
checkpath --directory --owner ${command_user}:${command_user} --mode 0775 \
/run/${SVCNAME} /var/log/${SVCNAME}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment