Lines Matching +full:local +full:- +full:pid
1 #-
2 # SPDX-License-Identifier: BSD-2-Clause
16 readonly SYSLOGD_PIDFILE="${PWD}/syslogd.pid"
22 local jail bind_arg conf_file pid_file socket privsocket
23 local opt next other_args
32 bind_arg="${bind_arg} -b ${OPTARG}"
54 -* | "")
55 other_args="${other_args} -${opt}"
56 shift $((OPTIND - 1))
59 other_args="${other_args} -${opt} ${next}"
68 atf_fail "The -${OPTARG} flag requires an argument"
74 ${bind_arg:--b :${SYSLOGD_UDP_PORT}} \
75 -C \
76 -d \
77 -f "${conf_file:-${SYSLOGD_CONFIG}}" \
78 -H \
79 -P "${pid_file:-${SYSLOGD_PIDFILE}}" \
80 -p "${socket:-${SYSLOGD_LOCAL_SOCKET}}" \
81 -S "${privsocket:-${SYSLOGD_LOCAL_PRIVSOCKET}}" \
86 while [ "$((i+=1))" -le 20 ]; do
87 [ -S "${socket:-${SYSLOGD_LOCAL_SOCKET}}" ] && return
96 atf_check -s exit:0 -o empty -e empty logger $*
102 atf_check pkill -HUP -F "${1:-${SYSLOGD_PIDFILE}}"
108 local pid_file="${1:-${SYSLOGD_PIDFILE}}"
109 local socket_file="${2:-${SYSLOGD_LOCAL_SOCKET}}"
110 local privsocket_file="${3:-${SYSLOGD_LOCAL_PRIVSOCKET}}"
112 pid=$(cat "${pid_file}")
113 if pkill -F "${pid_file}"; then
114 wait "${pid}"
115 rm -f "${pid_file}" "${socket_file}" "${privsocket_file}"
124 if kldstat -q -n if_${type}.ko; then
128 if ! kldload -n -q if_${type}; then
142 atf_check jail -c name=${jailname} ${args} persist
150 if [ -f created_jails.lst ]; then
152 jail -r ${jailname}
157 if [ -f epair ]; then