Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/customservice/templates/init-customservice.erb

Issue 29465602: #1574 - Update template syntax in customservice module (Closed)
Patch Set: Created June 14, 2017, 12:37 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/customservice/templates/init-customservice.erb
===================================================================
--- a/modules/customservice/templates/init-customservice.erb
+++ b/modules/customservice/templates/init-customservice.erb
@@ -9,9 +9,9 @@
# Description: Enable service provided by daemon.
### END INIT INFO
-user="<%= user %>"
-name="<%= name %>"
-cmd="<%= command %>"
+user="<%= @user %>"
+name="<%= @name %>"
+cmd="<%= @command %>"
pid_file="/var/run/$name.pid"
stdout_log="/var/log/$name.log"
@@ -31,8 +31,8 @@
echo "Already started"
else
echo "Starting $name"
- <% if workdir != :undef -%>
- cd "<%= workdir %>"
+ <% if @workdir != :undef -%>
+ cd "<%= @workdir %>"
<% end -%>
sudo -u "$user" \
<% for variable in @env -%>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld