Changes between Version 7 and Version 8 of SolarisInstallation
- Timestamp:
- 31.12.2009 12:40:14 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SolarisInstallation
v7 v8 1 [[TOC(heading=Content:)]] 2 3 = Coherence (Open)Solaris Installation Guide = 1 {{{ 2 #!html 3 <h1 style="text-align: center; color: blue; font-size:3.0em">HowTo: Installation on Solaris</h1> 4 }}} 5 6 [[TOC(heading= ,inline)]] 7 8 [[BR]] 9 [[BR]] 10 11 == Coherence (Open)Solaris Installation Guide == 4 12 5 13 This document gives a brief overview on how to install Coherence on (Open)Solaris. 6 14 7 == Dependencies and Installation == 15 === Dependencies and Installation === 16 8 17 There is a mimimum set of dependencies that Coherence needs to be able to run. Thanks to the built-in package manager this is very easy. Either use the Package Manager GUI tool in Gnome or a root shell like this: 9 18 {{{ 19 #!bash 10 20 Mike@Sisyphos:~$ pkg install <package-name> 11 21 }}} 20 30 Variant 1: 21 31 {{{ 32 #!bash 22 33 Mike@Sisyphos:~$ su 23 34 Mike@Sisyphos:~$ password: 31 42 Variant 2: 32 43 {{{ 44 #!bash 33 45 Mike@Sisyphos:/$ cd ~ 34 46 Mike@Sisyphos:~$ mkdir Development 43 55 Both variants will leave you with an executable in /usr/bin which can be run from any location by just typing 44 56 {{{ 57 #!bash 45 58 Mike@Sisyphos:~$ coherence 46 59 }}} 61 74 1) Create user and group for the server (we assume upnp/nas here), if you don't want to reuse an existing user. The group should be allowed to access your media files. If you have setup your box as a file server then you probably have already a dedicated group for accessing it, which would be a good candidate. If not do 62 75 {{{ 76 #!bash 63 77 Mike@Sisyphos:~$ groupadd nas 64 78 Mike@Sisyphos:~$ useradd -g nas -d /var/coherence upnp 67 81 2) Create a private folder for Coherence. There we store the config file, the log file and a lock file which prevents more than one instance to start (if started via start script). 68 82 {{{ 83 #!bash 69 84 Mike@Sisyphos:~$ mkdir /var/coherence 70 85 Mike@Sisyphos:~$ chown upnp:nas /var/coherence 74 89 3) Copy the [[attachment:coherence.conf config file]] into that folder and give proper permissions. 75 90 {{{ 91 #!bash 76 92 Mike@Sisyphos:~$ cd /var/coherence 77 93 Mike@Sisyphos:/var/coherence$ chown upnp:nas coherence.conf 80 96 81 97 4) Copy the socalled [[attachment:coherence.sh method script]] (a script to control the server) to /lib/svc/method/coherence (no extension) and set permissions. This file is used by the Service Management Facility (SMF) to control the service. 82 {{{ 98 99 {{{ 100 #!bash 83 101 Mike@Sisyphos:~$ chmod 555 /lib/svc/method/coherence 84 102 }}} 87 105 88 106 6) Import the service description to add the new service. 89 {{{ 107 108 {{{ 109 #!bash 90 110 Mike@Sisyphos:~$ svccfg import /var/svc/manifest/application/coherence.xml 91 111 }}} 92 112 93 113 The service is now ready and only needs to be started. Check that it is really there: 94 {{{ 114 115 {{{ 116 #!bash 95 117 Mike@Sisyphos:~$ svcs coherence 96 118 STATE STIME FMRI 99 121 100 122 Enable the service and you are done. 101 {{{ 123 124 {{{ 125 #!bash 102 126 Mike@Sisyphos:~$ svcadmin enable coherence 103 127 Mike@Sisyphos:~$ svcs coherence 109 133 110 134 == Troubleshooting == 135 111 136 In case something goes wrong you have several means to look for a reason. 112 137 113 138 1) If your service doesn't want to go online and stays offline or in maintenance mode check if all dependencies (of the service, not coherence itself) are met: 114 {{{ 139 140 {{{ 141 #!bash 115 142 Mike@Sisyphos:~$ svcs -l coherence 116 143 fmri svc:/application/upnp/coherence:default 128 155 dependency require_all/none svc:/system/filesystem/local:default (online) 129 156 }}} 157 130 158 Spend special attention to the dependencies. All four must be "online". Use the next command to find other info (only useful if the service makes trouble). 131 {{{ 159 160 {{{ 161 #!bash 132 162 Mike@Sisyphos:~$ svcs -x coherence 133 163 svc:/application/upnp/coherence:default (Coherence UPNP/DLNA media server) 142 172 143 173 A good pool of information is also the set of properties assigned to the service. You get them via: 144 {{{ 174 175 {{{ 176 #!bash 145 177 Mike@Sisyphos:~$ svcprop coherence 146 178 coherence/config astring /var/coherence/coherence.conf 211 243 212 244 3) If the service enters the maintenance state and you receive a "could not set context for method" error in the service log, make sure the service account has a home directory set. Note the attempt to change directories. 213 {{{ 245 246 {{{ 247 #!bash 214 248 [ Apr 28 21:55:26 Executing start method ("/lib/svc/method/coherence start"). ] 215 249 svc.startd could not set context for method: chdir: No such file or directory 218 252 219 253 The solution is to add a sensible home directory to the service account: 220 {{{ 254 255 {{{ 256 #!bash 221 257 [jmccune@rain ~]$ pfexec usermod -d /var/coherence upnp 222 258 }}}
