Opensolaris : SMF and Squid

Decided to create a SMF manifest for squid so that it autostarts on boot.

Command to start squid : /usr/squid/sbin/squid 

Command to stop squid : /usr/squid/sbin/squid -k shutdown 

This site has a good starter on SMF creation :

I’ve taken a copy of the /var/svc/manifest/network/smb/server.xml file for my squid manifest and placed it at /var/svc/manifest/network/squid/squid.xml

Import the XML using this command; 

svccfg import /var/svc/manifest/network/squid/squid.xml 

Update: i’ve stopped this work as i missed the fact that squid already comes with a SMF manifest! :)  No idea how i missed that one. You can enable via ; 

svcadm enable svc:/network/http:squid

This is the manifest for the above service; 

<?xml version=”1.0″?>




The contents of this file are subject to the terms of the

Common Development and Distribution License (the “License”).

You may not use this file except in compliance with the License.


You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE


See the License for the specific language governing permissions

and limitations under the License.


When distributing Covered Code, include this CDDL HEADER in each

file and include the License file at usr/src/OPENSOLARIS.LICENSE.

If applicable, add the following below this CDDL HEADER, with the

fields enclosed by brackets “[]” replaced with your own identifying

information: Portions Copyright [yyyy] [name of copyright owner]





<!DOCTYPE service_bundle SYSTEM “/usr/share/lib/xml/dtd/service_bundle.dtd.1”>


    Copyright 2007 Sun Microsystems, Inc.  All rights reserved.

    Use is subject to license terms.


    ident “@(#)http-squid.xml 1.2 08/01/16 SMI”



<service_bundle type=’manifest’ name=’SUNWsquidr:squid’>








 Because we may have multiple instances of network/http

 provided by different implementations, we keep dependencies

 and methods within the instance.



<instance name=’squid’ enabled=’false’>


 Wait for network interfaces to be initialized.


<dependency name=’network’




   <service_fmri value=’svc:/milestone/network:default’/>




 Wait for all local filesystems to be mounted.


<dependency name=’filesystem-local’









 Wait for automounting to be available, as we may be

 serving data from home directories or other remote



<dependency name=’autofs’











exec=’/lib/svc/method/http-squid start’

timeout_seconds=’60’ />





exec=’/lib/svc/method/http-squid stop’

timeout_seconds=’60’ />


<property_group name=’startd’ type=’framework’>

<!– sub-process core dumps shouldn’t restart

session –>

<propval name=’ignore_error’ type=’astring’

value=’core,signal’ />





                <loctext xml:lang=’C’>

                    Squid WebCache




                <manpage title=’squid’ section=’8′

                    manpath=’/usr/squid/man’ />

                <doc_link name=’’

                    uri=’’ />





        <stability value=’Evolving’ />






330 Replies to “Opensolaris : SMF and Squid”

  1. How do you know each other? antifungal shampoo with ketoconazole While costs reflected the usual seasonal increase due to our maintenance turnarounds, they improved by $28 per tonne relative to the comparative period in 2013 and $16 per tonne through the first nine months of 2014.

  2. It’s funny goodluck hydroface anti aging reviews HONG KONG, Oct 23 (Reuters) – Private firms have overtakenstate-owned companies this year for the first time as thebiggest drivers of investment banking revenues in China – a signof how Beijing’s reforms are transforming private capital’s rolein the world’s second-largest economy.

  3. An envelope lumanere ageless face complex Although there are smaller, more indirect routes into Aleppo, taking the road would significantly reduce the rebels’ ability to resupply and it would also allow the army to besiege areas of the city which fell to insurgents two years ago.

  4. I’d like to pay this cheque in, please valium vs xanax for social anxiety The company has attempted to kick-start currently stalled shale gas exploration and development with a surprise announcement that it will pay 6pc of revenues from its shale gas wells once they are up and running.

  5. Is it convenient to talk at the moment? hcg activator diet reviews It said Udall was not seen as a leader in Washington and complained his team spent a “shocking amount of energy and money” unfairly trying to persuade voters that Gardner wants to outlaw birth control.

  6. I’d like to send this letter by buy phenphasta The only groups that have seen faster income growth than the top 1 percent are the top .1 percent and top .01 percent.

  7. In tens, please (ten pound notes) xanax xr 2mg price At the moment, the worldwide situation is a patchwork, ranging from complete freedom of sale to bans on sales to minors or of e-cigs that contain nicotine.

  8. I’ll call back later diferencia valium rivotril It shouldn’t have taken the NFL and the Ravens seeing the TMZ tape Monday of Rice punching Janay Palmer in the elevator to be able to connect the dots about what happened behind those closed doors in Atlantic City in February