maybe chmod 0644 'default/dbus'
maybe chmod 0644 'default/dovecot'
maybe chmod 0644 'default/fail2ban'
+maybe chmod 0644 'default/graphite-api'
maybe chmod 0644 'default/graphite-carbon'
maybe chmod 0644 'default/grub'
maybe chmod 0755 'default/grub.d'
maybe chmod 0755 'ghostscript/fontmap.d'
maybe chmod 0644 'ghostscript/fontmap.d/10gsfonts.conf'
maybe chmod 0755 'graphite'
+maybe chmod 0644 'graphite-api.yaml'
maybe chmod 0755 'graphite/__pycache__'
maybe chmod 0644 'graphite/local_settings.py'
maybe chmod 0755 'groff'
maybe chmod 0755 'init.d/dbus'
maybe chmod 0755 'init.d/dovecot'
maybe chmod 0755 'init.d/fail2ban'
+maybe chmod 0755 'init.d/graphite-api'
maybe chmod 0755 'init.d/grub-common'
maybe chmod 0755 'init.d/hwclock.sh'
maybe chmod 0755 'init.d/icinga2'
maybe chmod 0644 'logrotate.d/dbconfig-common'
maybe chmod 0644 'logrotate.d/dpkg'
maybe chmod 0644 'logrotate.d/fail2ban'
+maybe chmod 0644 'logrotate.d/graphite-api'
maybe chmod 0644 'logrotate.d/graphite-carbon'
maybe chmod 0644 'logrotate.d/graphite-web'
maybe chmod 0644 'logrotate.d/icinga2'
--- /dev/null
+# This file is not used when using systemd.
+# Use "systemctl edit graphite-api" instead.
+
+# IP address and TCP port to listen. Can be a Unix socket too (eg
+# unix:/var/run/graphite-api/gunicorn.sock)
+DAEMON_ARGS="--bind=127.0.0.1:8542 $DAEMON_ARGS"
+
+# Number of workers to use
+DAEMON_ARGS="--workers=1 $DAEMON_ARGS"
--- /dev/null
+search_index: /var/lib/graphite-api/index
+whisper:
+ directories:
+ - /var/lib/graphite/whisper
--- /dev/null
+/usr/share/icingaweb2/modules/graphite
\ No newline at end of file
--- /dev/null
+#!/bin/sh
+# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
+if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
+ set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
+fi
+### BEGIN INIT INFO
+# Provides: graphite-api
+# Required-Start: $remote_fs $syslog $network
+# Required-Stop: $remote_fs $syslog $network
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Graphite-API service
+### END INIT INFO
+
+DESC="Graphite-API service"
+DAEMON=/usr/bin/gunicorn3
+NAME=graphite-api
+PIDFILE="/run/$NAME.pid"
+USER=_graphite
+GROUP=_graphite
+DAEMON_ARGS="--name=$NAME"
+DAEMON_ARGS="$DAEMON_ARGS --log-file=/var/log/graphite-api/gunicorn.log"
+DAEMON_ARGS="$DAEMON_ARGS --user=$USER --group=$GROUP"
+DAEMON_ARGS="$DAEMON_ARGS --daemon --pid=$PIDFILE"
+DAEMON_ARGS="$DAEMON_ARGS graphite_api.app:app"
+
+do_stop_cmd_override() {
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 \
+ --pidfile ${PIDFILE} --exec /usr/bin/python3
+ RETVAL="$?"
+ [ "$RETVAL" = 2 ] && return 2
+ start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 \
+ --pidfile ${PIDFILE} --exec /usr/bin/python3
+ [ "$?" = 2 ] && return 2
+ rm -f $PIDFILE
+ return $RETVAL
+}
--- /dev/null
+/var/log/graphite-api/*.log {
+ weekly
+ missingok
+ rotate 4
+ compress
+ notifempty
+ create 640 _graphite _graphite
+}
--- /dev/null
+../init.d/graphite-api
\ No newline at end of file
--- /dev/null
+../init.d/graphite-api
\ No newline at end of file
--- /dev/null
+../init.d/graphite-api
\ No newline at end of file
--- /dev/null
+../init.d/graphite-api
\ No newline at end of file
--- /dev/null
+../init.d/graphite-api
\ No newline at end of file
--- /dev/null
+../init.d/graphite-api
\ No newline at end of file
--- /dev/null
+../init.d/graphite-api
\ No newline at end of file