2014-03-10 05:18:05 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
|
|
|
|
<!--
|
2015-11-19 04:40:31 +00:00
|
|
|
Assumes user=sickgear group=other
|
|
|
|
Assumes /opt/sickgear is installation directory
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
See http://www.sun.com/bigadmin/content/selfheal/sdev_intro.jsp for more information
|
2015-11-19 04:40:31 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
To install (see http://docs.sun.com/app/docs/doc/819-2379/fgour?l=en&a=view for more information)
|
2015-11-19 04:40:31 +00:00
|
|
|
svccfg import sickgear.smf
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
To enable/disable
|
2015-11-19 04:40:31 +00:00
|
|
|
svcadm enable sickgear
|
|
|
|
svcadm disable sickgear
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
To check if failures
|
|
|
|
svcs -xv
|
2015-11-19 04:40:31 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
To check logs
|
2015-11-19 04:40:31 +00:00
|
|
|
tail /var/svc/log/network-sickgear\:default.log
|
2014-03-10 05:18:05 +00:00
|
|
|
-->
|
2015-11-19 04:40:31 +00:00
|
|
|
|
|
|
|
<service_bundle type='manifest' name='sickgear'>
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
<service
|
2015-11-19 04:40:31 +00:00
|
|
|
name='network/sickgear'
|
2014-03-10 05:18:05 +00:00
|
|
|
type='service'
|
|
|
|
version='1'>
|
2015-11-19 04:40:31 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
<create_default_instance enabled='false' />
|
|
|
|
<single_instance />
|
2015-11-19 04:40:31 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
<!--
|
|
|
|
Only start in muti-user mode
|
|
|
|
-->
|
|
|
|
<dependency name='multi-user'
|
|
|
|
grouping='require_all'
|
|
|
|
restart_on='none'
|
|
|
|
type='service'>
|
|
|
|
<service_fmri value='svc:/milestone/multi-user' />
|
|
|
|
</dependency>
|
2015-11-19 04:40:31 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
<!--
|
|
|
|
Wait for network interfaces to be initialized.
|
|
|
|
-->
|
|
|
|
<dependency name='network'
|
|
|
|
grouping='require_all'
|
|
|
|
restart_on='none'
|
|
|
|
type='service'>
|
|
|
|
<service_fmri value='svc:/milestone/network:default'/>
|
|
|
|
</dependency>
|
2015-11-19 04:40:31 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
<!--
|
|
|
|
Wait for all local filesystems to be mounted.
|
|
|
|
-->
|
|
|
|
<dependency name='filesystem-local'
|
|
|
|
grouping='require_all'
|
|
|
|
restart_on='none'
|
|
|
|
type='service'>
|
|
|
|
<service_fmri value='svc:/system/filesystem/local:default'/>
|
|
|
|
</dependency>
|
2015-11-19 04:40:31 +00:00
|
|
|
|
|
|
|
<!-- execute as user sickgear -->
|
2014-03-10 05:18:05 +00:00
|
|
|
<method_context>
|
2015-11-19 04:40:31 +00:00
|
|
|
<method_credential user='sickgear' group='other' />
|
2014-03-10 05:18:05 +00:00
|
|
|
</method_context>
|
2015-11-19 04:40:31 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
<exec_method
|
|
|
|
type='method'
|
|
|
|
name='start'
|
2015-11-19 04:40:31 +00:00
|
|
|
exec='/opt/sickgear/SickBeard.py --daemon'
|
2014-03-10 05:18:05 +00:00
|
|
|
timeout_seconds='60'>
|
|
|
|
</exec_method>
|
2015-11-19 04:40:31 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
<exec_method
|
|
|
|
type='method'
|
|
|
|
name='stop'
|
|
|
|
exec=':kill'
|
|
|
|
timeout_seconds='2'>
|
|
|
|
</exec_method>
|
2015-11-19 04:40:31 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
<template>
|
|
|
|
<common_name>
|
2015-11-19 04:40:31 +00:00
|
|
|
<loctext xml:lang='C'>SickGear</loctext>
|
2014-03-10 05:18:05 +00:00
|
|
|
</common_name>
|
|
|
|
<documentation>
|
2015-11-19 04:40:31 +00:00
|
|
|
<doc_link name='sickgear'
|
|
|
|
uri='https://github.com/SickGear/SickGear/' />
|
2014-03-10 05:18:05 +00:00
|
|
|
</documentation>
|
|
|
|
</template>
|
2015-11-19 04:40:31 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
</service>
|
2015-11-19 04:40:31 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
</service_bundle>
|
|
|
|
|