From e982b78f24d1dca3d2bc92a39b8e9fcf35b39a37 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 9 Jan 2021 14:31:48 +0100 Subject: xml: op-mode: add preprocessor support as known from configuration mode --- op-mode-definitions/webproxy.xml | 110 --------------------------------------- 1 file changed, 110 deletions(-) delete mode 100644 op-mode-definitions/webproxy.xml (limited to 'op-mode-definitions/webproxy.xml') diff --git a/op-mode-definitions/webproxy.xml b/op-mode-definitions/webproxy.xml deleted file mode 100644 index f8ec8fb0a..000000000 --- a/op-mode-definitions/webproxy.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - Monitor WebProxy service - - ${vyatta_bindir}/vyatta-monitor Webproxy squid - - - - Monitor the last lines of the squid access log - - if [ -f /var/log/squid3/access.log ]; then sudo tail --follow=name /var/log/squid3/access.log; else echo "WebProxy cache-log does not exist"; fi - - - - Monitor Webproxy in the background - - - - - Start background monitoring of Webproxy - - ${vyatta_bindir}/vyatta-monitor-background Webproxy squid - - - - Stop background monitoring of Webproxy - - ${vyatta_bindir}/vyatta-monitor-background-stop Webproxy - - - - - - Monitor the last lines of the squid cache log - - if [ -f /var/log/squid3/cache.log ]; then sudo tail --follow=name /var/log/squid3/cache.log; else echo "WebProxy cache-log does not exist"; fi - - - - - - - - - - Restart WebProxy service - - if cli-shell-api existsActive service webproxy; then sudo systemctl restart squid.service; else echo "Service WebProxy not configured"; fi - - - - - - - - Show WebProxy information - - - - - - Show webproxy blacklist information - - - - - Show webproxy blacklist categories - - ${vyos_completion_dir}/list_webproxy_category.sh - - - - - - Show contents of WebProxy access log - - if [ -e /var/log/squid/access.log ]; then sudo less $_vyatta_less_options --prompt="file %i of %m, page %dt of %D" -- `printf "%s\n" /var/log/squid/access.log* | sort -nr`; else echo "No WebProxy log"; fi - - - - Show update log for url-filter database - - if [ -e /opt/vyatta/etc/config/url-filtering/squidguard/updatestatus ]; then cat /opt/vyatta/etc/config/url-filtering/squidguard/updatestatus; else echo "Update log not found"; fi - - - - - - - - - - Update WebProxy - - - - - Update the webproxy blacklist database - - sudo ${vyos_op_scripts_dir}/webproxy_update_blacklist.sh --update-blacklist - - - - - - -- cgit v1.2.3