mirror of
https://github.com/skeeto/endlessh.git
synced 2025-12-10 15:05:35 +00:00
committed by
Christopher Wellons
parent
494c68b8d7
commit
cb7ee90cf5
96
util/smf/endlessh.xml
Normal file
96
util/smf/endlessh.xml
Normal file
@@ -0,0 +1,96 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
|
||||
<!-- Manifest-file for endlessh, put this file in
|
||||
/var/svc/manifest/network/endlessh.xml
|
||||
and run #svccfg import /var/svc/manifest/network/endlessh.xml
|
||||
Fixed by Yuri Voinov (C) 2007,2019 -->
|
||||
<service_bundle type='manifest' name='endlessh'>
|
||||
|
||||
<service
|
||||
name='network/endlessh'
|
||||
type='service'
|
||||
version='1'>
|
||||
|
||||
<create_default_instance enabled='false' />
|
||||
|
||||
<single_instance />
|
||||
|
||||
<dependency name='fs-local'
|
||||
grouping='require_all'
|
||||
restart_on='none'
|
||||
type='service'>
|
||||
<service_fmri
|
||||
value='svc:/system/filesystem/local' />
|
||||
</dependency>
|
||||
|
||||
<dependency name='net-loopback'
|
||||
grouping='require_all'
|
||||
restart_on='none'
|
||||
type='service'>
|
||||
<service_fmri value='svc:/network/loopback' />
|
||||
</dependency>
|
||||
|
||||
<dependency name='net-physical'
|
||||
grouping='require_all'
|
||||
restart_on='none'
|
||||
type='service'>
|
||||
<service_fmri value='svc:/network/physical' />
|
||||
</dependency>
|
||||
|
||||
<dependency name='utmp'
|
||||
grouping='require_all'
|
||||
restart_on='none'
|
||||
type='service'>
|
||||
<service_fmri value='svc:/system/utmp' />
|
||||
</dependency>
|
||||
|
||||
<dependency name='endlessh_config_data'
|
||||
grouping='require_all'
|
||||
restart_on='refresh'
|
||||
type='path'>
|
||||
<service_fmri value='file://localhost/usr/local/etc/endlessh.conf' />
|
||||
</dependency>
|
||||
|
||||
<exec_method
|
||||
type='method'
|
||||
name='start'
|
||||
exec='/lib/svc/method/init.endlessh %m'
|
||||
timeout_seconds='60'/>
|
||||
|
||||
<exec_method
|
||||
type='method'
|
||||
name='stop'
|
||||
exec=':kill'
|
||||
timeout_seconds='60' />
|
||||
|
||||
<exec_method
|
||||
type='method'
|
||||
name='restart'
|
||||
exec='/lib/svc/method/init.endlessh %m'
|
||||
timeout_seconds='60' />
|
||||
|
||||
<exec_method
|
||||
type='method'
|
||||
name='refresh'
|
||||
exec='/lib/svc/method/init.endlessh %m'
|
||||
timeout_seconds='60' />
|
||||
|
||||
<property_group name='general' type='framework'>
|
||||
<!-- to start stop endlessh -->
|
||||
<propval name='action_authorization' type='astring'
|
||||
value='solaris.smf.manage' />
|
||||
</property_group>
|
||||
|
||||
<stability value='Unstable' />
|
||||
|
||||
<template>
|
||||
<common_name>
|
||||
<loctext xml:lang='C'>
|
||||
endlessh service
|
||||
</loctext>
|
||||
</common_name>
|
||||
</template>
|
||||
|
||||
</service>
|
||||
|
||||
</service_bundle>
|
||||
Reference in New Issue
Block a user