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"
>Read from stdin in orderJune McEnroe 2020-07-18Actually fix nvim and doas presence testsJune McEnroe 2020-07-14Install up CGI with mode 700June McEnroe It should never be served as a regular file. 2020-07-14Check that there is upload dataJune McEnroe 2020-07-14Add CGI upload program for temp.causal.agencyJune McEnroe 2020-07-10Add The Broken KingdomsJune McEnroe 2020-07-08Add facebook and twitter to title user-agentJune McEnroe This fixes fetching tweets again! https://github.com/thelounge/thelounge/pull/ 3602 (Intentionally breaking the link so GitHub doesn't add a "referenced this PR" thing?) 2020-06-30Tweak causal.agency for mostly no reasonJune McEnroe 2020-06-30Add Ancillary JusticeJune McEnroe 2020-06-26Add password non-manager to planJune McEnroe I've had this idea for years... 2020-06-26Tweak TF2 sensitivities once moreJune McEnroe 2020-06-19Add note about litterbox bot useJune McEnroe 2020-06-19Publish "IRC suite"June McEnroe 2020-06-17Add errors to link.shJune McEnroe