Skip to content

updated the command sequence and location of the service file #1703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion linux/usage/systemd.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ Copy this file into `/etc/systemd/system` as root, for example:
sudo cp myscript.service /etc/systemd/system/myscript.service
```

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

```
sudo systemctl daemon-reload
```

Now you can attempt to start the service using the following command:
```
sudo systemctl start myscript.service
```
Expand Down