diff options
Diffstat (limited to 'net-analyzer/smokeping/files')
-rw-r--r-- | net-analyzer/smokeping/files/79_smokeping.conf | 15 | ||||
-rw-r--r-- | net-analyzer/smokeping/files/smokeping.conf | 1 | ||||
-rw-r--r-- | net-analyzer/smokeping/files/smokeping.init.5 | 56 | ||||
-rw-r--r-- | net-analyzer/smokeping/files/smokeping.service | 10 |
4 files changed, 0 insertions, 82 deletions
diff --git a/net-analyzer/smokeping/files/79_smokeping.conf b/net-analyzer/smokeping/files/79_smokeping.conf deleted file mode 100644 index 1e9361ba501a..000000000000 --- a/net-analyzer/smokeping/files/79_smokeping.conf +++ /dev/null @@ -1,15 +0,0 @@ -### -### Setup the smokeping image cache and perl cgi script -### -<IfModule mod_alias.c> - Alias "/.simg/" "/var/lib/smokeping/.simg/" - <IfModule mod_perl.c> - <Directory "/var/lib/smokeping/.simg/"> - Options -Indexes MultiViews - AllowOverride None - Order deny,allow - Deny from all - Allow from 127.0.0.1 - </Directory> - </IfModule> -</IfModule> diff --git a/net-analyzer/smokeping/files/smokeping.conf b/net-analyzer/smokeping/files/smokeping.conf deleted file mode 100644 index 729726316fbd..000000000000 --- a/net-analyzer/smokeping/files/smokeping.conf +++ /dev/null @@ -1 +0,0 @@ -d /run/smokeping 0755 root root diff --git a/net-analyzer/smokeping/files/smokeping.init.5 b/net-analyzer/smokeping/files/smokeping.init.5 deleted file mode 100644 index 3c08c3fdc65e..000000000000 --- a/net-analyzer/smokeping/files/smokeping.init.5 +++ /dev/null @@ -1,56 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -command="/usr/bin/smokeping" -command_args="--nodaemon" -command_background="true" -command_user="smokeping:smokeping" -pidfile="/run/${RC_SVCNAME}.pid" -extra_started_commands="dump reload restore" -required_files="/etc/smokeping/config" - -depend() { - need net - use dns -} - -start_pre() { - export LC_ALL=C -} - -reload() { - ebegin "Reloading smokeping" - "${command}" --reload 2>&1 >/dev/null - eend $? -} - -dump() { - ebegin "Dumping smokeping rrd files to XML for backup or upgrade use" - if service_started "${myservice}" ; then - eerror "You need to stop smokeping before dumping files!" - return 1 - fi - for f in $(find /var/lib/smokeping -name '*.rrd' -print) ; do - f_xml=$(dirname $f)/$(basename $f .rrd).xml - rrdtool dump "$f" > "${f_xml}" - chown root:0 "${f_xml}" - done - eend $? -} - -restore() { - ebegin "Restoring smokeping rrd files from XML dump files" - if service_started "${myservice}" ; then - eerror "You need to stop smokeping before restoring files!" - return 1 - fi - for f in $(find /var/lib/smokeping -name '*.xml' -print) ; do - f_rrd=$(dirname $f)/$(basename $f .xml).rrd - mv -f "${f_rrd}" "${f_rrd}.bak" - chown root:0 "${f_rrd}.bak" - rrdtool restore "$f" "${f_rrd}" - chown smokeping:smokeping "${f_rrd}" - done - eend $? -} diff --git a/net-analyzer/smokeping/files/smokeping.service b/net-analyzer/smokeping/files/smokeping.service deleted file mode 100644 index 2130aca23627..000000000000 --- a/net-analyzer/smokeping/files/smokeping.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Latency Logging and Graphing System -After=network.target - -[Service] -ExecStart=/usr/bin/smokeping --nodaemon -ExecReload=/bin/kill -HUP $MAINPID - -[Install] -WantedBy=multi-user.target |