{"action":"opened","issue":{"url":"https://api.github.com/repos/Strider-CD/strider/issues/743","labels_url":"https://api.github.com/repos/Strider-CD/strider/issues/743/labels{/name}","comments_url":"https://api.github.com/repos/Strider-CD/strider/issues/743/comments","events_url":"https://api.github.com/repos/Strider-CD/strider/issues/743/events","html_url":"https://github.com/Strider-CD/strider/issues/743","id":61615912,"number":743,"title":"How to run strider as a daemon service in EC2?","user":{"login":"chenweiyj","id":1733948,"avatar_url":"https://avatars.githubusercontent.com/u/1733948?v=3","gravatar_id":"","url":"https://api.github.com/users/chenweiyj","html_url":"https://github.com/chenweiyj","followers_url":"https://api.github.com/users/chenweiyj/followers","following_url":"https://api.github.com/users/chenweiyj/following{/other_user}","gists_url":"https://api.github.com/users/chenweiyj/gists{/gist_id}","starred_url":"https://api.github.com/users/chenweiyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenweiyj/subscriptions","organizations_url":"https://api.github.com/users/chenweiyj/orgs","repos_url":"https://api.github.com/users/chenweiyj/repos","events_url":"https://api.github.com/users/chenweiyj/events{/privacy}","received_events_url":"https://api.github.com/users/chenweiyj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-14T14:09:14Z","updated_at":"2015-03-14T14:09:14Z","closed_at":null,"body":"I find the document of `strider` shows we can run `strider` by typing `strider` in the terminal. However, it does not show how to run it as a daemon service. I write a service script to put it into /etc/init.d/. But the strider process is killed directly after started. I need some help. Thank you.\r\n\r\nHere is my service script:\r\n```\r\n#!/bin/bash\r\n#\r\n# chkconfig: 35 90 12\r\n# description: strider server\r\n#\r\n# Get function from functions library\r\n. /etc/init.d/functions\r\n# Start the service strider\r\nstart() {\r\n        echo -n $\"Starting strider CI server: \"\r\n        PORT=3888 SERVER_NAME=\"http://192.168.199.174:3888\" /home/ec2-user/.nvm/v0.10.36/bin/strider &\r\n        ### Create the lock file ###\r\n        touch /var/lock/subsys/strider\r\n        success $\"strider server startup\"\r\n        echo\r\n}\r\n# Restart the service strider\r\nstop() {\r\n        echo -n $\"Stopping strider server: \"\r\n        killproc strider\r\n        ### Now, delete the lock file ###\r\n        rm -f /var/lock/subsys/strider\r\n        echo\r\n}\r\n### main logic ###\r\ncase \"$1\" in\r\n  start)\r\n        start\r\n        ;;\r\n  stop)\r\n        stop\r\n        ;;\r\n  status)\r\n        status strider\r\n        ;;\r\n  restart|reload|condrestart)\r\n        stop\r\n        start\r\n        ;;\r\n  *)\r\n        echo $\"Usage: $0 {start|stop|restart|reload|status}\"\r\n        exit 1\r\nesac\r\nexit 0\r\n```\r\n"}}