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 -%> |