{"id":17996844,"url":"https://github.com/zk/init-script-test","last_synced_at":"2025-04-04T06:14:36.957Z","repository":{"id":888475,"uuid":"637553","full_name":"zk/init-script-test","owner":"zk","description":"An example project that uses the leiningen-init-script plugin","archived":false,"fork":false,"pushed_at":"2010-06-27T22:03:43.000Z","size":4628,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T17:28:18.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-04-29T05:19:18.000Z","updated_at":"2014-05-03T23:32:59.000Z","dependencies_parsed_at":"2022-08-16T11:20:28.755Z","dependency_job_id":null,"html_url":"https://github.com/zk/init-script-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk%2Finit-script-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk%2Finit-script-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk%2Finit-script-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk%2Finit-script-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zk","download_url":"https://codeload.github.com/zk/init-script-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128753,"owners_count":20888235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T21:16:01.655Z","updated_at":"2025-04-04T06:14:36.933Z","avatar_url":"https://github.com/zk.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# init-script-test\n\nAn example project that provides an example of how to use the leiningen-init-script plugin\n\n## How-To\nClone the init-script-test repo\n\n    git clone git://github.com/zkim/init-script-test.git\n\ncd into the cloned repo directory\n\n\tcd init-script-test\u003c/code\u003e\n\t\nDownload dependencies\n\t\n\tlein deps\n\t\nRun the init-script task\n\t\n\tlein init-script\n\t\n\tYour output should look something like:\n\t\n\tCreated /Users/zkim/tmp/init-script-test/init-script-test.jar\n\tIncluding init-script-test.jar\n\tIncluding clojure-1.1.0.jar\n\tIncluding clojure-contrib-1.1.0.jar\n\tIncluding leiningen-init-script-0.1.0.jar\n\t*** Done generating init scripts, see the /Users/zkim/tmp/init-script-test/init-script/ directory\n\tnapple:init-script-test zkim$\n\t\ncd into the init-script directory\n\tcd ./init-script\n\t\nMake install-init-script-test, clean-init-script-test runnable\n\tchmod u+x ./install-init-script-test\n\tchmod u+x ./clean-init-script-test\n\t\nInstall init script and jar\n\tsudo ./install-init-script-test\n\t\nleiningen-init-script installs the jar to /usr/local/\u003cproject-name\u003e and the init script to /etc/init.d. These defaults can be changed, see the Configuration section of the [leiningen-init-script](http://github.com/zkim/leiningen-init-script) README\n\n\nStart the daemon service\n\tsudo /etc/init.d/init-script-testd start\n\t\nVerify the jar is running\n\tps -e\n\t\n\tOutput:\n\t\n\t44678 ttys003    0:00.01 login -pf zkim\n\t44679 ttys003    0:00.11 -bash\n\t45216 ttys003    0:01.28 /usr/bin/java -jar /usr/local/init-script-test/init-script-test-standalone.jar\n\t45225 ttys003    0:00.00 ps -e\n\t\nStop the daemon service and verify the process has stopped\n\tsudo /etc/init.d/init-script-testd stop\n\t\n\tps -e\n\t\n\t44198 ttys002    0:00.09 -bash\n\t44678 ttys003    0:00.01 login -pf zkim\n\t44679 ttys003    0:00.11 -bash\n\t45248 ttys003    0:00.00 ps -e\n\t\n## License\n\n[Eclipse Public License v1.0](http://www.eclipse.org/legal/epl-v10.html)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk%2Finit-script-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzk%2Finit-script-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk%2Finit-script-test/lists"}