{"action":"created","issue":{"url":"https://api.github.com/repos/blockchain/service-my-wallet-v3/issues/100","repository_url":"https://api.github.com/repos/blockchain/service-my-wallet-v3","labels_url":"https://api.github.com/repos/blockchain/service-my-wallet-v3/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/blockchain/service-my-wallet-v3/issues/100/comments","events_url":"https://api.github.com/repos/blockchain/service-my-wallet-v3/issues/100/events","html_url":"https://github.com/blockchain/service-my-wallet-v3/issues/100","id":152593811,"number":100,"title":"Service run on production server stops","user":{"login":"anver","id":506491,"avatar_url":"https://avatars.githubusercontent.com/u/506491?v=3","gravatar_id":"","url":"https://api.github.com/users/anver","html_url":"https://github.com/anver","followers_url":"https://api.github.com/users/anver/followers","following_url":"https://api.github.com/users/anver/following{/other_user}","gists_url":"https://api.github.com/users/anver/gists{/gist_id}","starred_url":"https://api.github.com/users/anver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anver/subscriptions","organizations_url":"https://api.github.com/users/anver/orgs","repos_url":"https://api.github.com/users/anver/repos","events_url":"https://api.github.com/users/anver/events{/privacy}","received_events_url":"https://api.github.com/users/anver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-02T16:52:19Z","updated_at":"2016-05-02T17:15:37Z","closed_at":null,"body":"I run the wallet service on a production server as stated on the documentation, everything works fine for few hours or may be 24 or 48 hours but it stops for some reason where we end up in a mess, not able to generate address or do anything. So I tried to create a bash script and run it through cron job but I'm not sure what I'm doing wrong the api is not working as intended. Can someone fix this script so that I can run the cron job to check the service is always running.\r\n\r\nWallet-service version is 0.20.1\r\nNode is v4.2.6\r\n\r\n\r\nMy bash script is this\r\n\r\n#!/bin/bash\r\n#make-run.sh\r\n#make sure a process is always running.\r\nexport DISPLAY=:0 #needed if you are running a simple gui app.\r\n\r\nprocess=walletcron\r\nmakerun=\"/usr/local/bin/blockchain-wallet-service start --port 3000\"\r\nif ps ax | grep -v grep | grep $process > /dev/null\r\nthen\r\n    exit\r\nelse\r\n    $makerun &\r\nfi\r\nexit\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/blockchain/service-my-wallet-v3/issues/comments/216298292","html_url":"https://github.com/blockchain/service-my-wallet-v3/issues/100#issuecomment-216298292","issue_url":"https://api.github.com/repos/blockchain/service-my-wallet-v3/issues/100","id":216298292,"user":{"login":"jtormey","id":8642682,"avatar_url":"https://avatars.githubusercontent.com/u/8642682?v=3","gravatar_id":"","url":"https://api.github.com/users/jtormey","html_url":"https://github.com/jtormey","followers_url":"https://api.github.com/users/jtormey/followers","following_url":"https://api.github.com/users/jtormey/following{/other_user}","gists_url":"https://api.github.com/users/jtormey/gists{/gist_id}","starred_url":"https://api.github.com/users/jtormey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtormey/subscriptions","organizations_url":"https://api.github.com/users/jtormey/orgs","repos_url":"https://api.github.com/users/jtormey/repos","events_url":"https://api.github.com/users/jtormey/events{/privacy}","received_events_url":"https://api.github.com/users/jtormey/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T17:15:37Z","updated_at":"2016-05-02T17:15:37Z","body":"Does the service output give you any indication as to why it stops working? Are there any errors appearing in the logs? Additional info would be helpful"}}