Re: Pre-Depends: init-system-helpers
On 11/17/2014 10:36 PM, Anthony Towns wrote:
> I wonder if it would make sense to just merge it all into the "service"
> command; ie:
>
> # service --use-policy ssh start
> # service --use-policy ssh restart
> # service ssh enable
> # service acpid.socket mask-for-upgrade
>
> in place of:
>
> # invoke-rc.d ssh start
> # invoke-rc.d ssh restart
> # update-rc.d ssh enable
> # deb-systemd-helper mask acpid.socket
I agree that the service command is the way to go, as it became the
standard everywhere, where invoke-rc.d didn't evolve.
> I wonder a bit if it wouldn't make even more sense to just make the common
> command be "systemctl", with Debian-specific patches for --use-policy
> and the various extra behaviours where necessary. Maybe just having a
> "systemctl" script with mostly compatible syntax provided for alternative
> inits would be a better approach.
I don't think so, because of the existing code base in maintainer's scripts.
> (The disadvantage to that would be
> that systemctl's a C program, so patching Debian specific options would
> be harder than with sh/perl scripts like service/deb-systemd-*/*-rc.d)
And there's that too, yes... Plus we'd have to make it upstreamed too.
Thomas
Reply to: