Skip to content

Commit 7749c99

Browse files
committed
reverted the information about /var/run
1 parent a0e448e commit 7749c99

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 `main.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 `/var/run/systemd/system` as root, for example:
29+
Copy this file into `/etc/systemd/system` as root, for example:
3030
```
31-
sudo cp myscript.service /var/run/systemd/system/myscript.service
31+
sudo cp myscript.service /etc/systemd/system/myscript.service
3232
```
3333

3434
Once this has been copied, you have to inform `systemd` that a new service has been added. This is done with the following command:

0 commit comments

Comments
 (0)