Skip to content
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #41 in CII/kochiku-worker from rob.update-shutdown…
Browse files Browse the repository at this point in the history
…-path to master

* commit '3b189f886225cbffde41bbc4cad881f43bd7f07b':
  Update path to kochiku-worker home
  • Loading branch information
robolson committed Sep 1, 2016
2 parents d51d746 + 3b189f8 commit 22ab610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kochiku/jobs/shutdown_instance_job.rb
Expand Up @@ -10,7 +10,7 @@ def self.perform
Process.kill("USR2", Process.ppid)

# Shutdown the instance 1 minute from now. Requires NOPASSWD sudo
pid = Process.spawn("sleep 5; sv stop /home/square/service/kochiku-worker; sudo shutdown -h +1")
pid = Process.spawn("sleep 5; sv stop /data/app/kochiku-worker/service/kochiku-worker; sudo shutdown -h +1")
Process.detach(pid)
end
end

0 comments on commit 22ab610

Please sign in to comment.