[Pkg-zsh-commits] [zsh] 01/01: Use "service" instead of "/etc/init.d" in debian/examples/carsten.zshrc

Axel Beckert abe at deuxchevaux.org
Fri Jun 26 21:54:10 UTC 2015


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch debian
in repository zsh.

commit 5808540c28cb9da6fc30a739b432350f45c02aa7
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Fri Jun 26 23:50:52 2015 +0200

    Use "service" instead of "/etc/init.d" in debian/examples/carsten.zshrc
    
    That way the example also supports systemd as init system.
---
 debian/examples/carstenh.zshrc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/debian/examples/carstenh.zshrc b/debian/examples/carstenh.zshrc
index d8a0186..31df15c 100644
--- a/debian/examples/carstenh.zshrc
+++ b/debian/examples/carstenh.zshrc
@@ -293,12 +293,11 @@ PS1='%(!..%n@)%m:%~%# '
 # ### ####################################################################{{{1
 
 # ### Start(), Restart(), Stop(), Reload(), Force-Reload():
-# ###             Start, restart, stop, reload or force-reload a System-V
-# ###             style init script.
+# ###             Start, restart, stop, reload or force-reload a service.
 # eval {Start,Restart,Stop,Reload,Force-Reload}'() { (
 #     builtin cd -q / || { echo >&2 "E: Could not chdir to /"; return 1; }
 #     env -i PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
-#     "/etc/init.d/${1:?}" "${0:l}"
+#     service "${1:?}" "${0:l}"
 # ) };'
 # compctl -g "/etc/init.d/*(:t)" Start Restart Stop Reload Force-Reload
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/zsh.git



More information about the Pkg-zsh-commits mailing list