code.gitea.io/gitea@v1.21.7/contrib/init/sunos/gitea.xml (about) 1 <?xml version="1.0"?> 2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> 3 <service_bundle type="manifest" name="export"> 4 <service name="gitea" type="service" version="1"> 5 <create_default_instance enabled="false"/> 6 7 <dependency name="network" grouping="require_all" restart_on="refresh" type="service"> 8 <service_fmri value="svc:/milestone/network:default"/> 9 </dependency> 10 11 <dependency name="filesystem" grouping="require_all" restart_on="refresh" type="service"> 12 <service_fmri value="svc:/system/filesystem/local"/> 13 </dependency> 14 15 <exec_method 16 type="method" 17 name="start" 18 exec="/opt/local/bin/gitea web" 19 timeout_seconds="60"> 20 <method_context> 21 <method_credential user="git" group="git" /> 22 <method_environment> 23 <envvar name='GITEA_WORK_DIR' value='/opt/local/share/gitea'/> 24 <envvar name='GITEA_CUSTOM' value='/opt/local/etc/gitea'/> 25 <envvar name='HOME' value='/var/db/gitea'/> 26 <envvar name='PATH' value='/opt/local/bin:${PATH}'/> 27 <envvar name='USER' value='git'/> 28 </method_environment> 29 </method_context> 30 </exec_method> 31 <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60"/> 32 33 <property_group name="application" type="application"></property_group> 34 <property_group name="startd" type="framework"> 35 <propval name="duration" type="astring" value="child"/> 36 <propval name="ignore_error" type="astring" value="core,signal"/> 37 </property_group> 38 39 <template> 40 <common_name> 41 <loctext xml:lang="C">A painless, self-hosted Git service</loctext> 42 </common_name> 43 </template> 44 45 </service> 46 </service_bundle>