本站源代码
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

47 lines
1.6KB

  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. <dependency name="network" grouping="require_all" restart_on="refresh" type="service">
  7. <service_fmri value="svc:/milestone/network:default"/>
  8. </dependency>
  9. <dependency name="filesystem" grouping="require_all" restart_on="refresh" type="service">
  10. <service_fmri value="svc:/system/filesystem/local"/>
  11. </dependency>
  12. <exec_method
  13. type="method"
  14. name="start"
  15. exec="/opt/local/bin/gitea web"
  16. timeout_seconds="60">
  17. <method_context>
  18. <method_credential user="git" group="git" />
  19. <method_environment>
  20. <envvar name='GITEA_WORK_DIR' value='/opt/local/share/gitea'/>
  21. <envvar name='GITEA_CUSTOM' value='/opt/local/etc/gitea'/>
  22. <envvar name='HOME' value='/var/db/gitea'/>
  23. <envvar name='PATH' value='/opt/local/bin:${PATH}'/>
  24. <envvar name='USER' value='git'/>
  25. </method_environment>
  26. </method_context>
  27. </exec_method>
  28. <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60"/>
  29. <property_group name="application" type="application"></property_group>
  30. <property_group name="startd" type="framework">
  31. <propval name="duration" type="astring" value="child"/>
  32. <propval name="ignore_error" type="astring" value="core,signal"/>
  33. </property_group>
  34. <template>
  35. <common_name>
  36. <loctext xml:lang="C">A painless, self-hosted Git service</loctext>
  37. </common_name>
  38. </template>
  39. </service>
  40. </service_bundle>
上海开阖软件有限公司 沪ICP备12045867号-1