Last active
December 31, 2015 23:09
-
-
Save nicgrayson/8058260 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include_recipe 'runit::default' | |
| include_recipe 'apt::default' | |
| include_recipe 'java::default' | |
| user 'artifactory' do | |
| home '/opt/artifactory' | |
| end | |
| package 'unzip' | |
| ark 'artifactory' do | |
| url node[:artifactory_url] | |
| path '/opt' | |
| action :put | |
| owner 'artifactory' | |
| group 'artifactory' | |
| end | |
| directory '/opt/artifactory/logs' do | |
| owner 'artifactory' | |
| group 'artifactory' | |
| end | |
| runit_service 'artifactory' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| exec svlogd -tt /opt/artifactory/logs/application.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| exec 2>&1 | |
| exec chpst -u artifactory /opt/artifactory/bin/artifactory.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment