You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
495 B
26 lines
495 B
#!/sbin/openrc-run
|
|
|
|
description="Dashboard Accelerator for Prometheus"
|
|
command=/usr/bin/trickster
|
|
command_background=yes
|
|
command_user=${user:-trickster}:${group:-trickster}
|
|
extra_started_commands=reload
|
|
pidfile=/var/run/${RC_SVCNAME}.pid
|
|
|
|
depend() {
|
|
after net
|
|
}
|
|
|
|
reload() {
|
|
ebegin "Reloading ${RC_SVCNAME}"
|
|
case "${supervisor}" in
|
|
supervise-daemon)
|
|
supervise-daemon --signal HUP --pidfile "${pidfile}"
|
|
;;
|
|
*)
|
|
start-stop-daemon --signal HUP --pidfile "${pidfile}"
|
|
;;
|
|
esac
|
|
eend $?
|
|
}
|