Created
June 16, 2015 07:46
-
-
Save atuyosi/7aad87707a8043d95894 to your computer and use it in GitHub Desktop.
unit file for fastladder-crawler
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
[Unit] | |
Description=Fastladder crawler | |
After=mysqld.service | |
[Service] | |
Type=simple | |
User=rails | |
WorkingDirectory=/var/lib/rails/fastladder | |
Environment=RAILS_ENV=production | |
SyslogIdentifier=fastladder-crawler | |
ExecStart=/usr/local/rvm/bin/rvm-exec 2.1.5 bundle exec bundle exec "script/crawler" | |
#ExecStop=/usr/bin/kill -KILL $MAINPID | |
ExecStop=/bin/kill -QUIT $MAINPID | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment