Skip to content

Instantly share code, notes, and snippets.

@atuyosi
Created June 16, 2015 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atuyosi/7aad87707a8043d95894 to your computer and use it in GitHub Desktop.
Save atuyosi/7aad87707a8043d95894 to your computer and use it in GitHub Desktop.
unit file for fastladder-crawler
[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