Commit 12f3978 1 parent 8fa2e4d commit 12f3978 Copy full SHA for 12f3978
File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ After=net_handler.service
4
4
5
5
[Service]
6
6
Type =simple
7
- User =pi
8
- WorkingDirectory =/home/pi /runtime/systemd/
7
+ User =ubuntu
8
+ WorkingDirectory =/home/ubuntu /runtime/systemd/
9
9
ExecStartPre =/bin/sleep 1
10
- ExecStart =/home/pi /runtime/systemd/ngrok.sh
10
+ ExecStart =/home/ubuntu /runtime/systemd/ngrok.sh
11
11
ExecReload =/bin/kill -SIGINT $MAINPID
12
12
13
13
[Install]
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
function sigint_handler {
4
- pkill -u pi /home/pi /ngrok
4
+ pkill -u ubuntu /home/ubuntu /ngrok
5
5
}
6
6
7
7
trap ' sigint_handler' INT
8
8
9
- nohup /home/pi /ngrok start --all --config /home/pi /runtime/systemd/ngrok.yml > /dev/null
9
+ nohup /home/ubuntu /ngrok start --all --config /home/ubuntu /runtime/systemd/ngrok.yml > /dev/null
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ Description=Serves a webpage that displays the ngrok tunnel IP addresses.
3
3
4
4
[Service]
5
5
Type =simple
6
- User =pi
7
- WorkingDirectory =/home/pi /runtime/systemd/
6
+ User =ubuntu
7
+ WorkingDirectory =/home/ubuntu /runtime/systemd/
8
8
ExecStart =python3 ngrok_displayer.py
9
9
ExecReload =/bin/kill -SIGINT $MAINPID
10
10
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ Description=Sets the time on this raspberry pi when on CalVisitor
4
4
[Service]
5
5
Type =oneshot
6
6
User =root
7
- WorkingDirectory =/home/pi
8
- ExecStart =/home/pi /runtime/systemd/set_time.sh
7
+ WorkingDirectory =/home/ubuntu
8
+ ExecStart =/home/ubuntu /runtime/systemd/set_time.sh
9
9
KillSignal =SIGINT
10
10
11
11
[Install]
You can’t perform that action at this time.
0 commit comments