Discussion:
[Dnsmasq-discuss] "The" way to start dnsmasq via systemd
george Nopicture
2018-05-01 11:10:20 UTC
Permalink
Hello list. I was wondering what is the proper way to start dnsmasq
from systemd in linux. A default systemd unit file assumes a simple
type of service and starts it with -k (keep in foreground).
Is that correct or should we specify type=forking and let dnsmasq fork
in the background?
Thanks,
George.
Leonardo Rodrigues
2018-05-04 16:20:17 UTC
Permalink
    centos 7 systemd file for dnsmasq uses -k:

[***@firewall ~]# cat /usr/lib/systemd/system/dnsmasq.service
[Unit]
Description=DNS caching server.
After=network.target

[Service]
ExecStart=/usr/sbin/dnsmasq -k

[Install]
WantedBy=multi-user.target
Post by george Nopicture
Hello list. I was wondering what is the proper way to start dnsmasq
from systemd in linux. A default systemd unit file assumes a simple
type of service and starts it with -k (keep in foreground).
Is that correct or should we specify type=forking and let dnsmasq fork
in the background?
Thanks,
George.
--
Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br

Minha armadilha de SPAM, NÃO mandem email
***@solutti.com.br
My SPAMTRAP, do not email it
Loading...