-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move sentry to a systemd service for easy start / stop
The issue with the previous implementation was that under certain circumstances, the sentry process would take over the current process. Also, stopping the server had quite an inefficient implementation. Delegate this to systemd for management.
- Loading branch information
Showing
4 changed files
with
52 additions
and
48 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
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
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# sentry.service | ||
# | ||
# Copyright (C) 2019 Kano Computing Ltd. | ||
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2 | ||
# | ||
# Service for a sentry DNS server. This is provided by kano-settings to | ||
# offer Parental Controls features and restrict Internet browsing. | ||
|
||
|
||
[Unit] | ||
Description=Sentry | ||
DefaultDependencies=no | ||
IgnoreOnIsolate=true | ||
|
||
[Service] | ||
ExecStart=/usr/bin/sentry -c /usr/share/kano-settings/config/sentry | ||
Restart=always | ||
RestartSec=10 |