forked from midgetspy/Sick-Beard
-
Notifications
You must be signed in to change notification settings - Fork 72
/
init.solaris11
95 lines (77 loc) · 2.28 KB
/
init.solaris11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
Assumes user=sickbeard group=other
Assumes /opt/sickbeard is installation directory
See http://www.sun.com/bigadmin/content/selfheal/sdev_intro.jsp for more information
To install (see http://docs.sun.com/app/docs/doc/819-2379/fgour?l=en&a=view for more information)
svccfg import sickbeard.smf
To enable/disable
svcadm enable sickbeard
svcadm disable sickbeard
To check if failures
svcs -xv
To check logs
tail /var/svc/log/network-sickbeard\:default.log
-->
<service_bundle type='manifest' name='sickbeard'>
<service
name='network/sickbeard'
type='service'
version='1'>
<create_default_instance enabled='false' />
<single_instance />
<!--
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>
<!--
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>
<!--
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>
<!-- execute as user sickbeard -->
<method_context>
<method_credential user='sickbeard' group='other' />
</method_context>
<exec_method
type='method'
name='start'
exec='/opt/sickbeard/SickBeard.py --daemon'
timeout_seconds='60'>
</exec_method>
<exec_method
type='method'
name='stop'
exec=':kill'
timeout_seconds='2'>
</exec_method>
<template>
<common_name>
<loctext xml:lang='C'>Sickbeard</loctext>
</common_name>
<documentation>
<doc_link name='sickbeard'
uri='http://www.sickbeard.com/' />
</documentation>
</template>
</service>
</service_bundle>