From d7dcf75ed5500fc605a34241779143ab7b718643 Mon Sep 17 00:00:00 2001 From: Dan Fayette Date: Thu, 19 Jun 2014 10:43:00 -0400 Subject: [PATCH] Add tab completion for upstart If upstart is used, add symlink: /etc/init.d/nginx -> /lib/init/upstart-job --- nginx/package.sls | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nginx/package.sls b/nginx/package.sls index 147dc07..fd5ae0c 100644 --- a/nginx/package.sls +++ b/nginx/package.sls @@ -64,3 +64,10 @@ nginx: - file: /etc/nginx/conf.d/default.conf - file: /etc/nginx/conf.d/example_ssl.conf - pkg: nginx + +# Create 'service' symlink for tab completion. +{% if use_upstart %} +/etc/init.d/nginx: + file.symlink: + - target: /lib/init/upstart-job +{% endif %}