Skip to content

service start dnsmasq always return true #1

@mirasrael

Description

@mirasrael

In dnsmasq.sh script used command service dnsmasq start || service dnsmasq restart which never restarts server because first part always returns true.
It may be rewritten as:
(service dnsmasq status && service dnsmasq restart) || service dnsmasq start

My configuration:
OS:

NAME="Ubuntu"
VERSION="14.04.3 LTS, Trusty Tahr"
ID=ubuntu

Dnsmasq version 2.68

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions