examples/var_service: new example: dnsmasq service
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
12
examples/var_service/dnsmasq/run
Executable file
12
examples/var_service/dnsmasq/run
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
#exec >/dev/null
|
||||
exec 2>&1
|
||||
exec </dev/null
|
||||
|
||||
echo "* Starting dnsmasq"
|
||||
exec \
|
||||
env - PATH="$PATH" \
|
||||
softlimit \
|
||||
setuidgid root \
|
||||
dnsmasq -C dnsmasq.conf
|
Reference in New Issue
Block a user