Skip to content
Permalink
Browse files

set working directory to .service

  • Loading branch information...
UedaTakeyuki committed Aug 23, 2018
1 parent ab86fbf commit f9fef1e353046ad92f213395342836f20ee491d5
Showing with 3 additions and 2 deletions.
  1. +2 −1 setid.sh
  2. +1 −1 view.service
@@ -15,4 +15,5 @@ if [ $# -ne 1 ]; then
usage
fi

sed -i "s/^your_view_id=.*/your_view_id=$1/" view.sh
sed -i "s/^your_view_id=.*/your_view_id=$1/" view.sh
sed -i "s#^ExecStart=.*#ExecStart=`pwd`/loop.sh#" view.service
@@ -3,7 +3,7 @@
Description=Take photos & Post to the monitor
After=rc-local.service
[Service]
ExecStart=/home/pi/view/loop.sh
ExecStart=
Restart=always
#RestartSec=90
RestartSec=30

0 comments on commit f9fef1e

Please sign in to comment.
You can’t perform that action at this time.