-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,17 @@ Example: | |
Please check the services folder for examples of what a systemd service template should look like if you choose to run | ||
motion-poll or set-time as a service. By using environment files and templating, the user can handle multiple cameras | ||
with only one service file. | ||
For example, I will define my environment file `hallway.env` and place it in the configuration folder. | ||
In order to run `motion-poll` as a service I will execute the following command: | ||
|
||
systemctl start motion@hallway | ||
|
||
This will use the `[email protected]` file and take all the relevant variables from the `hallway.env` file. | ||
If I want the service to restart when the server restarts I need to enable it. | ||
|
||
systemctl enable motion@hallway | ||
|
||
The commands are the same as when running any other systemd service. | ||
|
||
## System-wide Install | ||
A Makefile is provided in the project root that will make a system-wide install of the go binaries once compiled. It | ||
|