Advertisement
otteydw

Untitled

Apr 14th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. # The service definition
  2. service { $atom_service:
  3. ensure => running,
  4. enable => true,
  5. start => "su - ${linux_user} -c \"${atom_path}/bin/atom start\"",
  6. stop => "su - ${linux_user} -c \"${atom_path}/bin/atom stop\"",
  7. status => "su - ${linux_user} -c \"${atom_path}/bin/atom status\"",
  8. }
  9.  
  10. # The debug output
  11. Debug: Executing '/bin/systemctl is-active Atom'
  12. Debug: Executing '/bin/systemctl is-enabled Atom'
  13. Debug: Executing 'su - cloudadm -c "/usr/local/boomi/cloud/bin/atom start"'
  14. Debug: Executing '/bin/systemctl is-enabled Atom'
  15. Debug: Executing '/bin/systemctl enable Atom'
  16.  
  17. # Why is it still trying to use systemctl to check the status?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement