aboutsummaryrefslogtreecommitdiffstats
path: root/testing/telegraf/telegraf.initd
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-02-20 23:12:47 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-02-20 23:12:47 +0100
commit6726298408636fa9706fb4f8e8cfc4923df72010 (patch)
treec698f25fdfa95fe38a2544cfa20b2a7a551acd1b /testing/telegraf/telegraf.initd
parente03552fc58ace9d2c6002f3609b2fb12044031f8 (diff)
downloadaports-6726298408636fa9706fb4f8e8cfc4923df72010.tar.bz2
aports-6726298408636fa9706fb4f8e8cfc4923df72010.tar.xz
Revert "testing/telegraf: new aport"
This reverts commit b278ca91122ed0faee3da41f801d7cb0c33c9473. This aport downloads dependencies from internet without any verification ("go get"), i.e. the build is not deterministic. Also the provided init script is quite bad.
Diffstat (limited to 'testing/telegraf/telegraf.initd')
-rw-r--r--testing/telegraf/telegraf.initd39
1 files changed, 0 insertions, 39 deletions
diff --git a/testing/telegraf/telegraf.initd b/testing/telegraf/telegraf.initd
deleted file mode 100644
index 9f8e0cf0c0..0000000000
--- a/testing/telegraf/telegraf.initd
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/openrc-run
-
-NAME=telegraf
-DAEMON=/usr/bin/$NAME
-
-# /usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d
-
-depend() {
- need net
- after firewall
-}
-
-start() {
- ebegin "Starting ${NAME}"
- start-stop-daemon --start --quiet --background \
- --make-pidfile --pidfile /var/run/${NAME}.pid \
- --exec ${DAEMON} -- ${OPTS} -config /etc/${NAME}/${NAME}.conf -config-directory /etc/${NAME}/${NAME}.d
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${NAME}"
- start-stop-daemon --stop --quiet \
- --exec ${DAEMON} \
- --pidfile /var/run/${NAME}.pid \
- eend $?
-}
-
-reload() {
- ebegin "Reloading ${NAME}"
- if ! service_started "${NAME}" ; then
- eend 1 "${NAME} is not started"
- return 1
- fi
- start-stop-daemon --stop --oknodo --signal HUP \
- --exec ${DAEMON} --pidfile /var/run/${NAME}.pid
- eend $?
-}
-