File: systemd-helper

package info (click to toggle)
dnsmasq 2.92-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,120 kB
  • sloc: ansic: 37,139; perl: 643; sh: 632; makefile: 210; python: 136; xml: 53
file content (34 lines) | stat: -rwxr-xr-x 928 bytes parent folder | download | duplicates (5)
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
27
28
29
30
31
32
33
34
#!/bin/sh

. /usr/share/dnsmasq/init-system-common

case "$1" in
	checkconfig)
		checkconfig
		;;
	start-resolvconf)
		start_resolvconf
		;;
	stop-resolvconf)
		stop_resolvconf
		;;
	exec)
		# /run may be volatile, so we need to ensure that
		# /run/dnsmasq exists here as well as in postinst
		if [ ! -d /run/dnsmasq ]; then
			mkdir /run/dnsmasq || { [ -d /run/dnsmasq ] || exit 2 ; }
			chown dnsmasq:nogroup /run/dnsmasq || exit 2
		fi
		exec ${DAEMON} -x /run/dnsmasq/${NAME}${INSTANCE:+.${INSTANCE}}.pid \
			${MAILHOSTNAME:+ -m ${MAILHOSTNAME}} \
			${MAILTARGET:+ -t ${MAILTARGET}} \
			${DNSMASQ_USER:+ -u ${DNSMASQ_USER}} \
			${DNSMASQ_INTERFACES:+ ${DNSMASQ_INTERFACES}} \
			${DHCP_LEASE:+ -l ${DHCP_LEASE}} \
			${DOMAIN_SUFFIX:+ -s ${DOMAIN_SUFFIX}} \
			${RESOLV_CONF:+ -r ${RESOLV_CONF}} \
			${CACHESIZE:+ -c ${CACHESIZE}} \
			${CONFIG_DIR:+ -7 ${CONFIG_DIR}} \
			${DNSMASQ_OPTS:+ ${DNSMASQ_OPTS}}
		;;
esac