# Systemd unit file for PIA-BACK [Unit] Description=Start the Pia-backend service Requires=network.target local-fs.target After=network.target local-fs.target [Service] Type=simple # ExecStartPre=RAILS_ENV=production ExecStart=/home/pia/pia-back/bin/rails s ExecStop=killall ruby WorkingDirectory=/home/pia/pia-back Environment="RAILS_ENV=production" User=pia Group=pia [Install] WantedBy=multi-user.target