Guest User

Untitled

a guest
Feb 17th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. start on runlevel [2345]
  2. stop on runlevel [06]
  3.  
  4. limit nofile 32768 32768
  5. env DISPLAY=:0
  6. respawn
  7.  
  8. script
  9. [ -r /etc/default/splash ] && . /etc/default/splash
  10. logdir=${SPLASH_LOGDIR:-/var/log/splash}
  11. proxyprofilespath=${SPLASH_PROXYPROFILESPATH:-/etc/splash/proxy-profiles}
  12. jsprofilespath=${SPLASH_JSPROFILESPATH:-/etc/splash/js-profiles}
  13. maxrss=${SPLASH_MAXRSS:-$(awk '/MemTotal/{print $2*0.75/1024}' /proc/meminfo)}
  14. cachepath=${SPLASH_CACHEPATH:-/var/cache/splash}
  15. cachesize=${SPLASH_CACHESIZE:-512} # 512MB
  16.  
  17. chown proxy:proxy $logdir $proxyprofilespath $cachepath $jsprofilespath
  18.  
  19. # May need to figure out how to run this /usr/bin/xvfb-run --auto-servernum
  20.  
  21. exec start-stop-daemon --start
  22. --chuid proxy:proxy
  23. --pidfile /var/run/splash.pid
  24. --exec /usr/bin/xvfb-run /usr/bin/python --
  25. -m splash.server
  26. --maxrss $maxrss
  27. --logfile $logdir/splash.log
  28. --proxy-profiles-path=$proxyprofilespath
  29. --js-profiles-path=$jsprofilespath
  30. --cache --cache-path=$cachepath --cache-size=$cachesize
  31. --manhole
  32. >$logdir/splash.out 2>$logdir/splash.err
  33. end script
  34.  
  35. proxy 701 1 0 21:45 ? 00:00:00 /bin/sh /usr/bin/xvfb-run /usr/bin/python -m splash.server --maxrss 1239.67 --logfile /var/log/splash/splash.log --proxy-profiles-path=/etc/splash/proxy-profiles --js-profiles-path=/etc/splash/js-profiles --cache --cache-path=/var/cache/splash --cache-size=512 --manhole
  36. proxy 776 701 0 21:45 ? 00:00:05 /usr/bin/python -m splash.server --maxrss 1239.67 --logfile /var/log/splash/splash.log --proxy-profiles-path=/etc/splash/proxy-profiles --js-profiles-path=/etc/splash/js-profiles --cache --cache-path=/var/cache/splash --cache-size=512 --manhole
Add Comment
Please, Sign In to add comment