Solaris 10 SMF manifest for taiclockd.
< ?xml version='1.0'?> < !DOCTYPE service_bundle SYSTEM 'service_bundle.dtd.1'> <!-- Copyright (c) 2006 Jason Filley <jason@snakelegs.org> * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --> <service_bundle type='manifest' name='taiclockd'> <service name='network/taiclockd' type='service' version='1'> <instance name='default' enabled='true'> <dependency name='paths' grouping='require_all' restart_on='error' type='path'> <service_fmri value='file://localhost/usr/local/clockspeed/bin/taiclockd' /> <stability value='External' /> </dependency> <dependency name='network' grouping='require_all' restart_on='error' type='service'> <service_fmri value='svc:/network/service:default' /> </dependency> <dependency name='fs-local' grouping='require_all' restart_on='error' type='service'> <service_fmri value='svc:/system/filesystem/local:default'/> </dependency> <exec_method type='method' name='start' exec='/usr/local/clockspeed/bin/taiclockd' timeout_seconds='5'> <method_context> <method_credential user='_taiclockd' group='taiclockd' privileges='basic,net_privaddr,proc_chroot' /> </method_context> <stability value='External' /> </exec_method> <exec_method type='method' name='stop' exec=':kill' timeout_seconds='60' /> <template> <common_name> <loctext xml:lang='C'>TAICLOCKD Daemon</loctext> </common_name> <documentation> <doc_link name='DJBs Time Utilities' uri='http://cr.yp.to/time.html/' /> <manpage title='taiclockd' section='1' manpath='/usr/local/clockspeed/man/' /> </documentation> </template> </instance> </service> </service_bundle>