Hi,

On Mon, 24 Feb 2025 11:48:03 +0100
Carles Pina i Estany <car...@pina.cat> wrote:

> 
> Hello,
> 
> I've packaged "simplemonitor". The package adds a simplemonitor user,
> and a systemd service to run simplemonitor under this user and using
> the configuration files from /etc/simplemonitor
> 
> I know that some user did "apt install simplemonitor" and then tried
> to use simplemonitor without systemd (which is possible, but
> reinventing the wheel). The user tried it that because he didn't
> realise that simplemonitor was integrated with systemd, the
> simplemonitor system user, checks on startup, etc.
> 
> My question is: how to inform users about systemd integration?

If your package uses dh_installsystemd to integrate with systemd, that
should be enough.

Lorenzo

> 
> As a user, what I do when I wonder about that is "dpkg -L PACKAGE"
> and see if I spot some systemd service files. And also tend to read
> /usr/share/doc/PACKAGE/changelog.Debian.gz or related files to see if
> the maintainer wrote any information there.
> 
> To be more proactive about that, I thought to add a debconf template
> with something such as (untested, just the idea):
> 
> ----
> 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.
> 
> Thanks very much!
> 

Reply via email to