Skip to content

Commit

Permalink
selfiebooth executable for systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
reinzor committed Nov 23, 2016
1 parent 974776e commit 5fbca70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sudo bash -c "echo 'hdmi_mode=16' >> /boot/config.txt"
# Copy the app
echo "Make sure that we start the app on startup"
sudo cp $DIR/selfiebooth.service /etc/systemd/system/
sudo bash -c "echo 'ExecStart=$DIR/src/app.py' >> /etc/systemd/system/selfiebooth.service"
sudo bash -c "echo 'ExecStart=$DIR/selfiebooth' >> /etc/systemd/system/selfiebooth.service"
sudo systemctl enable selfiebooth.service

echo ""
Expand Down
4 changes: 4 additions & 0 deletions selfiebooth
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
sudo $DIR/src/app.py
2 changes: 1 addition & 1 deletion selfiebooth.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ WantedBy=multi-user.target

[Service]
Restart=on-abort
#ExecStart=/home/pi/selfiebooth/src/app.py (This line will be appended by installer)
#ExecStart= (This line will be appended by installer)

0 comments on commit 5fbca70

Please sign in to comment.