Hi !
When my VPS reboot, the puma server restart, but not the two other services : sphinx and jobs work
Here’s my .service for you to see where is the error :
[Service] WorkingDirectory=/root/sharetribe ExecStart=/bin/bash -lc 'source /root/.profile && source /usr/local/rvm/scripts/rvm && RAILS_ENV=production && bundle exec rake ts:index && bundle exec rake ts:start' Restart=always RestartSec=10 StandardOutput=syslog StandardError=syslog SyslogIdentifier=sharetri User=root Group=root Environment=RAILS_ENV=production [Install] WantedBy=multi-user.target
[Service]
WorkingDirectory=/root/sharetribe
ExecStart=/bin/bash -lc ‘source /root/.profile && source /usr/local/rvm/scripts/rvm && RAILS_ENV=production && NODE_ENV=production && bundle exec rake jobs:work’
Restart=always
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=sharetri
User=root
Group=root
Environment=RAILS_ENV=production NODE_ENV=production[Install]
WantedBy=multi-user.target