Skip to content

Commit

Permalink
run daemon at boot
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmike committed Feb 15, 2014
1 parent ea56193 commit 0efa80f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/config.yml.sample
Expand Up @@ -12,6 +12,7 @@ peercoin:
password: rpcpassword
host: localhost
port: 9904
daemon: /path/to/ppcoin/src/ppcoind

devise:
secret: "111111111111"
Expand Down
8 changes: 8 additions & 0 deletions config/schedule.rb
Expand Up @@ -18,3 +18,11 @@
# end

# Learn more: http://github.com/javan/whenever

require File.expand_path('../../config/environment', __FILE__)
every :reboot do
if daemon = CONFIG['peercoin']['daemon']
command daemon
end
end

0 comments on commit 0efa80f

Please sign in to comment.