README
1
2 This is an experimental OpenSolaris build of varnish:
3
4 http://varnish.projects.linpro.no/
5
6 As with all the experimental OpenSolaris Web Stack packages this is
7 not suitable for real use, but should be useful for experimenting.
8 If you try this out please provide feedback, ideas and suggestions
9 to webstack-discuss (a] opensolaris.org
10
11 http://opensolaris.org/os/project/webstack/
12
13
14
15 Trying Varnish
16 ==============
17
18
19 The current prototype is not hooked up to smf, it can only be started
20 manually. All content is under /usr/varnish and for now there are no
21 links to standard locations such as /usr/bin. Such cleanup and
22 integration will occur later if there is interest.
23
24 Varnish uses /var/varnish/ but this is not created by the package
25 right now, so create it manually first.
26
27 Below is a sample starting command (run varnishd without any options
28 for more possibilities). Note that -F starts varnish in the foreground
29 for convenience in debugging, you wouldn't normally run it that way.
30
31 The package is not yet able to deliver a varnish user so we're reusing
32 webservd for the moment.
33
34 % su
35 # mkdir /var/varnish/
36 # /usr/varnish/sbin/varnishd -a :80 -b $MY_WEBSERVER:80 -u webservd -g webservd -F -p "cc_command=/opt/SunStudioExpress/bin/cc -c -o %o %s"
37
38 or if you don't have Sun Studio installed and want to use gcc:
39
40 # /usr/varnish/sbin/varnishd -a :80 -b $MY_WEBSERVER:80 -u webservd -g webservd -F -p "cc_command=/usr/sfw/bin/gcc -c -o %o %s"
41
42 Now you can try the various tools in /usr/varnish/bin/
43
44 # /usr/varnish/bin/varnishlog
45
46
47 There are known limitations on Solaris right now and there are
48 probably many integration problems left to resolve since this is an
49 initial experimental drop of the package. Have fun and let the Web
50 Stack community know what you find.
51