parent
d3f34f32e2
commit
c15ba7e4fa
@ -0,0 +1,29 @@ |
||||
[server] |
||||
#host-name=foo |
||||
#domain-name=local |
||||
use-ipv4=yes |
||||
use-ipv6=no |
||||
check-response-ttl=no |
||||
use-iff-running=no |
||||
enable-dbus=no |
||||
|
||||
[publish] |
||||
publish-addresses=yes |
||||
publish-hinfo=yes |
||||
publish-workstation=no |
||||
publish-domain=yes |
||||
#publish-dns-servers=192.168.1.1 |
||||
#publish-resolv-conf-dns-servers=yes |
||||
|
||||
[reflector] |
||||
enable-reflector=no |
||||
reflect-ipv=no |
||||
|
||||
[rlimits] |
||||
#rlimit-as= |
||||
rlimit-core=0 |
||||
rlimit-data=4194304 |
||||
rlimit-fsize=0 |
||||
rlimit-nofile=30 |
||||
rlimit-stack=4194304 |
||||
rlimit-nproc=1 |
@ -0,0 +1,25 @@ |
||||
#!/bin/sh |
||||
|
||||
BIN=avahi-daemon |
||||
DEFAULT=/etc/default/$BIN |
||||
OPTIONS="-D" |
||||
RUN_D=/var/run/$BIN |
||||
[ -f $DEFAULT ] && . $DEFAULT |
||||
|
||||
case $1 in |
||||
start) |
||||
mkdir -p $RUN_D |
||||
$BIN $OPTIONS |
||||
;; |
||||
stop) |
||||
$BIN -k |
||||
;; |
||||
reload) |
||||
$BIN -r |
||||
;; |
||||
*) |
||||
echo "usage: $0 (start|stop|reload)" |
||||
exit 1 |
||||
esac |
||||
|
||||
exit $? |
@ -0,0 +1,10 @@ |
||||
<?xml version="1.0" standalone='no'?><!--*-nxml-*--> |
||||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> |
||||
<service-group> |
||||
<name replace-wildcards="yes">Web Server on %h</name> |
||||
<service> |
||||
<type>_http._tcp</type> |
||||
<port>80</port> |
||||
<txt-record>path=/index.html</txt-record> |
||||
</service> |
||||
</service-group> |
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" standalone='no'?><!--*-nxml-*--> |
||||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> |
||||
<service-group> |
||||
<name replace-wildcards="yes">Secure Shell on %h</name> |
||||
<service> |
||||
<type>_ssh._tcp</type> |
||||
<port>22</port> |
||||
</service> |
||||
</service-group> |
Loading…
Reference in new issue