Skip to content

Commit 93ebe69

Browse files
Add service file for systemd
1 parent 6dae5b2 commit 93ebe69

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

phoebus.service

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[Unit]
2+
Description=My GUI App
3+
After=default.target
4+
5+
[Service]
6+
#Type=simple
7+
ExecStart=/usr/bin/env DISPLAY=:0 XAUTHORITY=/home/pi/.Xauthority /bin/bash /home/pi/phoebus/phoebus-product/phoebus.sh
8+
#Restart=on-failure
9+
#User=pi
10+
#Environment=DISPLAY=:0
11+
#Environment=XAUTHORITY=/home/pi/.Xauthority
12+
StandardOutput=append:/home/pi/phoebus/phoebus.log
13+
[Install]
14+
WantedBy=default.target
15+
16+
#ExecStart=/bin/bash /home/pi/phoebus/phoebus-product/phoebus.sh
17+
18+

0 commit comments

Comments
 (0)