Cross Reference: mdnsd
xref: /src/etc/rc.d/mdnsd
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/etc/rc.d/
11.1Stsarna#!/bin/sh
21.1Stsarna#
31.6Smartin# $NetBSD: mdnsd,v 1.6 2020/09/08 12:52:18 martin Exp $
41.1Stsarna#
51.1Stsarna
61.1Stsarna# PROVIDE: mdnsd
71.6Smartin# REQUIRE: network CRITLOCALMOUNTED staticroute
81.3Sroy# BEFORE:  NETWORKING
91.1Stsarna
101.1Stsarna$_rc_subr_loaded . /etc/rc.subr
111.1Stsarna
121.1Stsarnaname="mdnsd"
131.1Stsarnarcvar=$name
141.1Stsarnacommand="/usr/sbin/$name"
151.1Stsarnapidfile="/var/run/mdnsd/${name}.pid"
161.1Stsarnastart_precmd="mdnsd_precmd"
171.1Stsarna
181.1Stsarnamdnsd_precmd()
191.1Stsarna{
201.2Sdrochner    if [ ! -d /var/run/mdnsd ]; then
211.1Stsarna        mkdir -p -m 755 /var/run/mdnsd
221.1Stsarna    fi
231.1Stsarna    chown _mdnsd:_mdnsd /var/run/mdnsd
241.1Stsarna}
251.4Sskrll
261.1Stsarnaload_rc_config $name
271.1Stsarnarun_rc_command "$1"
28

Indexes created Sun Nov 30 00:09:37 GMT 2025