A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

varnish-startupscript - Stikked
From Paltry Pelican, 12 Years ago, written in Bash.
Embed
  1. #!/bin/bash
  2.  
  3. varnishdir="/opt/varnish"
  4. varnishd="$varnishdir/sbin/varnishd"
  5. configfile="$varnishdir/etc/varnish/default.vcl"
  6. storage="file,$varnishdir/var/varnish/varnish_storage.bin,10G"
  7.  
  8. start_varnish() {
  9.     if [ `ps auxc | grep varnishd | wc -l` -gt 0 ]; then
  10.         echo varnish is already running.
  11.         return
  12.     fi
  13.     echo starting varnish...
  14.     $varnishd -a :80 -u varnish -g varnish -f $configfile -s $storage
  15.     if [ `ps auxc | grep varnishncsa | wc -l` -eq 0 ]; then
  16.         echo varnish logger is not running.
  17.         echo start with /etc/init.d/varnishlog start
  18.     fi
  19. }
  20.  
  21. stop_varnish() {
  22.     if [ `ps auxc | grep varnishd | wc -l` -eq 0 ]; then
  23.         echo varnish is not running.
  24.         return
  25.     fi
  26.     echo stopping varnish...
  27.     while [ `ps auxc | grep varnishd | wc -l` -gt 0 ]; do
  28.         killall varnishd
  29.     done
  30.     echo stopped.
  31. }
  32.  
  33. restart_varnish() {
  34.     stop_varnish
  35.     start_varnish
  36. }
  37.  
  38. case "$1" in
  39.     start)
  40.         start_varnish
  41.         ;;
  42.     stop)
  43.         stop_varnish
  44.         ;;
  45.     restart)
  46.         restart_varnish
  47.         ;;
  48.     *)
  49.         echo "Usage: $0 {start|stop|restart}"
  50.         exit 1
  51.         ;;
  52. esac
  53.  
  54. exit 0

Replies to varnish-startupscript rss

Title Name Language When
varnish-logger Emerald Owl bash 12 Years ago.