Skip to content

Commit 12f3978

Browse files
committed
[SYSTEMD] updated last few files from pi to ubuntu
1 parent 8fa2e4d commit 12f3978

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

systemd/ngrok.service

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ After=net_handler.service
44

55
[Service]
66
Type=simple
7-
User=pi
8-
WorkingDirectory=/home/pi/runtime/systemd/
7+
User=ubuntu
8+
WorkingDirectory=/home/ubuntu/runtime/systemd/
99
ExecStartPre=/bin/sleep 1
10-
ExecStart=/home/pi/runtime/systemd/ngrok.sh
10+
ExecStart=/home/ubuntu/runtime/systemd/ngrok.sh
1111
ExecReload=/bin/kill -SIGINT $MAINPID
1212

1313
[Install]

systemd/ngrok.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22

33
function sigint_handler {
4-
pkill -u pi /home/pi/ngrok
4+
pkill -u ubuntu /home/ubuntu/ngrok
55
}
66

77
trap 'sigint_handler' INT
88

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

systemd/ngrok_displayer.service

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Description=Serves a webpage that displays the ngrok tunnel IP addresses.
33

44
[Service]
55
Type=simple
6-
User=pi
7-
WorkingDirectory=/home/pi/runtime/systemd/
6+
User=ubuntu
7+
WorkingDirectory=/home/ubuntu/runtime/systemd/
88
ExecStart=python3 ngrok_displayer.py
99
ExecReload=/bin/kill -SIGINT $MAINPID
1010

systemd/set_time.service

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Description=Sets the time on this raspberry pi when on CalVisitor
44
[Service]
55
Type=oneshot
66
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
99
KillSignal=SIGINT
1010

1111
[Install]

0 commit comments

Comments
 (0)