Change default pid file into run directory
This commit is contained in:
parent
7ce0e29ff5
commit
72ba11797c
@ -3,7 +3,7 @@ Description=DNS caching server.
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/dnsmasq --pid-file=/run/dnsmasq.pid
|
ExecStart=/usr/sbin/dnsmasq
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/run/dnsmasq.pid
|
PIDFile=/run/dnsmasq.pid
|
||||||
|
|
||||||
|
@ -106,6 +106,7 @@ done
|
|||||||
#set default user /group in src/config.h
|
#set default user /group in src/config.h
|
||||||
sed -i 's|#define CHUSER "nobody"|#define CHUSER "dnsmasq"|' src/config.h
|
sed -i 's|#define CHUSER "nobody"|#define CHUSER "dnsmasq"|' src/config.h
|
||||||
sed -i 's|#define CHGRP "dip"|#define CHGRP "dnsmasq"|' src/config.h
|
sed -i 's|#define CHGRP "dip"|#define CHGRP "dnsmasq"|' src/config.h
|
||||||
|
sed -i "s|\(#\s*define RUNFILE\) \"/var/run/dnsmasq.pid\"|\1 \"%{_rundir}/dnsmasq.pid\"|" src/config.h
|
||||||
|
|
||||||
# optional parts
|
# optional parts
|
||||||
sed -i 's|^COPTS[[:space:]]*=|\0 -DHAVE_DBUS -DHAVE_LIBIDN2 -DHAVE_DNSSEC|' Makefile
|
sed -i 's|^COPTS[[:space:]]*=|\0 -DHAVE_DBUS -DHAVE_LIBIDN2 -DHAVE_DNSSEC|' Makefile
|
||||||
|
Loading…
Reference in New Issue
Block a user