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