Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Monitoring
prometheus-graphite-relay
Commits
dd96b3d8
Commit
dd96b3d8
authored
Jun 30, 2019
by
anton
Browse files
fix initfile
parent
62918805
Changes
1
Hide whitespace changes
Inline
Side-by-side
dist/relay.initd
View file @
dd96b3d8
...
...
@@ -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}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment