Skip to content

Commit

Permalink
Added systemd service
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade committed Nov 27, 2019
1 parent 755c6f6 commit e111183
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ Requirements:

sudo apt install libgstreamer-plugins-base1.0* libgstreamer1.0-dev libgstrtspserver-1.0-dev gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly

Running as a service:
sudo cp rpanion.service /etc/systemd/system
sudo systemctl enable rpanion.service

12 changes: 12 additions & 0 deletions rpanion.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Rpanion Server Service
After=network.target

[Service]
WorkingDirectory=/home/rpanion-server
ExecStart=/usr/bin/npm run dev
Restart=on-failure
User=pi

[Install]
WantedBy=multi-user.target

0 comments on commit e111183

Please sign in to comment.