Skip to content

Instantly share code, notes, and snippets.

@edvakf edvakf/rack-test.service
Last active Apr 28, 2016

Embed
What would you like to do?
# 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
@edvakf

This comment has been minimized.

Copy link
Owner Author

commented Apr 27, 2016

起動するには

sudo systemctl start rack-test

起動したか確認するには

sudo systemctl status rack-test

ログを見るには

sudo journalctl -u rack-test -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.