blob: 132fb58c12df381cf7d961b6adb653df7fe2006f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Start application with service in Raspberry Pi
Hey, not a bug rather a question. I've tried making a service to launch the application and i can't seem to make it work. Just calling the bash script to launch the app itself is fine but not when making it a service. Is there a recommended way to just boot directly into the application and not see the desktop at all, ever?
This is my service file, placed in /etc/systemd/system, done daemon-reload and tried starting with systemctl start, aswell as enable and rebooted.
```
[Unit]
Description=Start Unity App
[Service]
ExecStart=/home/pi/Services/run.sh
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=piservice
User=pi
Group=pi
WorkingDirectory=/home/pi/Services
[Install]
WantedBy=basic.targetp
```
|