[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to inform users package is ready to use systemd



Hi,

On Tue, 25 Feb 2025 06:57:36 +0100
Carles Pina i Estany <carles@pina.cat> wrote:

> Unpacking simplemonitor (1.13.0-1) ...
> Setting up simplemonitor (1.13.0-1) ...
> Created symlink
> '/etc/systemd/system/multi-user.target.wants/simplemonitor.service' →
> '/usr/lib/systemd/system/simplemonitor.service'. Processing triggers
> for man-db (2.13.0-1) ... -----
> 
> When you said "that should be enough.": do you mean that for a user to
> know that the package is systemd ready this is enough?
> 
> Thank you very much,

Well, I don't use systemd so I'm not able to tell the exact command
but just looking at the man page I think the user can try

systemctl list-units simplemonitor
or
systemctl status simplemonitor
or
systemctl status --all

in general I think is reasonable to expect that a user that wants to
play with services is able to use systemctl to search and query a
service status.
If your package uses dh_installsystemd with default options, the service
should be unmasked, enabled and started by default at install, so your
service comes ready for use even without using systemctl..

Best,
Lorenzo


Reply to: