summary refs log tree commit diff
path: root/etc/samba_mdns
blob: 66b13af7d843b57b3bee95dbfa4bf8c7fa8b35a1 (plain) (blame)
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
#!/bin/sh

# PROVIDE: samba_mdns
# REQUIRE: samba_server mdnsd
# KEYWORD: shutdown

. /etc/rc.subr

name="samba_mdns"
rcvar="samba_mdns_enable"

load_rc_config $name

: ${samba_mdns_enable:="NO"}
: ${samba_mdns_name:="${hostname}"}
: ${samba_mdns_port:="445"}
: ${samba_mdns_text:=""}

procname="/usr/local/sbin/mdnsctl"
command="/usr/sbin/daemon"
pidfile="/var/run/${name}.pid"

publish_args="${samba_mdns_name} smb tcp ${samba_mdns_port} '${samba_mdns_text}'"
command_args="-T mdnsctl -p ${pidfile} -- ${procname} publish ${publish_args}"

run_rc_command "$1"
x/man/gfx.7?id=c185ca0670aac3f0f493f741a69d32308e4cb51f&follow=1'>Fix README mandoc lintsJune McEnroe 2018-09-19Un-NOT trans.alpha values in pngoJune McEnroe 2018-09-18Refactor reads in pngo and clear palette between filesJune McEnroe 2018-09-17Add tRNS support to pngoJune McEnroe 2018-09-11Move gfx man pages to gfx/manJune McEnroe 2018-09-11Move bin man pages to bin/manJune McEnroe 2018-09-11Rewrite gfx.7 and render plaintext READMEJune McEnroe 2018-09-11Remove GAMES from BINSJune McEnroe 2018-09-11Rewrite bin.7 and render to plaintext READMEJune McEnroe 2018-09-11Add "blank" lines to man pagesJune McEnroe 2018-09-10Add mdoc syntax fileJune McEnroe 2018-09-08Fix Nm usage in multi-name man pagesJune McEnroe 2018-09-08Put real dates on man pagesJune McEnroe 2018-09-08Replace gfx README with REAMDE.7June McEnroe 2018-09-08Link gfx man pages in ~/.localJune McEnroe