• should a service/daemon get automatically started on first installation

    From Joost van =?utf-8?Q?Baal-Ili=C4=87?@21:1/5 to Carles Pina i Estany on Mon Feb 24 13:50:01 2025
    On Mon, Feb 24, 2025 at 11:48:03AM +0100, Carles Pina i Estany wrote:

    Hello,

    I've packaged "simplemonitor".
    <snip>
    ----
    Template: simplemonitor/systemd-info
    Type: note
    _Description: Usage of simplemonitor
    The simplemonitor package integrates with systemd. Set it up in
    /etc/simplemonitor and then use:

    sudo systemctl restart simplemonitor
    ----

    But I wonder of any more standard ways to do that, what other packages
    do, etc.

    I remember lots of discussion about the question: "should a service/daemon get automatically started on first installation?" I've just searched in Debian Policy but could not find an answer. It this issue still delegated to the package maintainer? (And then the local admin might express preference via some mechanism, iirc...)

    Bye,

    Joost

    --
    “To succeed in the world it is not enough to be stupid,
    you must also be well-mannered.” —Voltaire

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From lorenzo@21:1/5 to joostvb-debian@mdcc.cx on Tue Feb 25 23:30:02 2025
    On Mon, 24 Feb 2025 13:24:29 +0100
    Joost van Baal-Ilić <joostvb-debian@mdcc.cx> wrote:

    I remember lots of discussion about the question: "should a
    service/daemon get automatically started on first installation?"
    I've just searched in Debian Policy but could not find an answer. It
    this issue still delegated to the package maintainer? (And then the
    local admin might express preference via some mechanism, iirc...)

    simplifying, dh addons for services (dh_installsystemd,
    dh_intallinit ...) enforce a default which seems to be:
    unmask + enable + start at package installation; the maintainer can
    override defaults; the user can then override wrt mask/unmask +
    enable/disable

    Lorenzo


    Bye,

    Joost


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)