Last active
April 28, 2016 02:23
-
-
Save edvakf/d81a4ae1c7211665d7652b6360fa5d2c to your computer and use it in GitHub Desktop.
This file contains 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
# sudo vi /etc/systemd/system/rack-test.service | |
[Unit] | |
Description=rack-test | |
After=syslog.target | |
[Service] | |
User=admin | |
Group=admin | |
WorkingDirectory=/home/admin/rack-test | |
Environment=PATH=/usr/local/bin:/usr/bin:/bin:/home/admin/local/bin | |
ExecStart=/home/admin/local/bin/bundle exec unicorn -c unicorn_config.rb | |
ExecStop=/bin/kill -s QUIT $MAINPID | |
ExecReload=/bin/kill -s USR2 $MAINPID | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
起動するには
起動したか確認するには
ログを見るには