systemd unit: Respect default file

Martin Pitt mpitt at debian.org
Wed Jun 4 13:19:10 BST 2014


tag 750529 -patch
thanks

Michael Biebl [2014-06-04 14:07 +0200]:
> I'm against adding such hacks to the .service file. Please don't do
> that. Please use the migration to native .service files to get rid of it.
> If you don't want the service to be started by default, simply use
> dh_systemd_enable --no-enable (or use a Condition*, if that is possible).
> While unfortunately there is no equivalent (yet) for update-rc.d, you
> can simply add a short comment to /etc/default/foo, that the RUN_BRLTTY
> setting has no influence on the systemd service and one should use
> systemctl enable|disable instead and that RUN_BRLTTY is only for the
> legacy system.
> 
> I don't want to see those RUN flags in /etc/default/foo dragged over
> into systemd service files.

Fair enough, let's go with the comment and --no-enable then. There is
no Condition* that allows you to specify a command, so we can't use
that.

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140604/de3c3d04/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list