:: Re: [DNG] OpenRC and Devuan
Etusivu
Poista viesti
Vastaa
Lähettäjä: Stephan Seitz
Päiväys:  
Vastaanottaja: dng
Aihe: Re: [DNG] OpenRC and Devuan
On Wed, May 04, 2016 at 09:44:30AM -0400, Rob Owens wrote:
>Normally *this* admin never uses the service command because:


You should because the service command cleans the environment. If you do
„/etc/init.d/<service> start” you can have strange results.

>1) it is not available on all distros or may not be installed


It is available in SLES11 and Debian (since 6?). Which distro doesn’t
have service?
Besides, as far as I know the service command is independant from the
init system, so it works with systemd or sysvinit.

>2) tab completion doesn't always work with the service command (depending
> on the distro, I suppose)
>3) tab completion always works when you specify the path to the script
> and you are running a bash shell


These are valid points. SLES doesn’t have bash completion in 11. IIRC tab
completion with service works in SLES 12 which uses systemd.
In Debian or debian based distros you have to install bash-completion and
activate it in /etc/bash.bashrc.

>That's why tab completion is important to me. I'm surprised that I seem
>to be the only one who thinks this way.


No, but with bash-completion this works with service in Debian as well.

Shade and sweet water!
    
    Stephan


--
| Stephan Seitz          E-Mail: stse@??? |
| Public Keys: http://fsing.rootsland.net/~stse/keys.html |