Skip to content

Commit 8149799

Browse files
kolewuJamesH65
authored andcommitted
Don't use vendor location for local service (raspberrypi#832)
/lib/systemd is only meant to be used by vendor provided packages and should not be used for local units.
1 parent d35a604 commit 8149799

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linux/usage/systemd.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ WantedBy=multi-user.target
2626
```
2727
So in this instance, the service would run Python 3 from our working directory `/home/pi/myscript` which contains our python program to run `myscript.py`. But you are not limited to Python programs: simply change the ExecStart line to be the command to start any program/script that you want running from booting.
2828

29-
Copy this file into `/lib/systemd/system` as root, for example:
29+
Copy this file into `/etc/systemd/system` as root, for example:
3030
```
31-
sudo cp myscript.service /lib/systemd/system/myscript.service
31+
sudo cp myscript.service /etc/systemd/system/myscript.service
3232
```
3333

3434
Once this has been copied, you can attempt to start the service using the following command:

0 commit comments

Comments
 (0)