Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add systemd stuff. - Provide separate user for service.
- Loading branch information
Showing
3 changed files
with
47 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=Network traffic analyzer | ||
After=syslog.target network.target | ||
|
||
[Service] | ||
Type=forking | ||
EnvironmentFile=-/etc/sysconfig/darkstat | ||
ExecStart=/usr/sbin/darkstat $OPTIONS | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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,3 @@ | ||
# As base only specify network interface is mandatory. | ||
# For more options see man darkstat | ||
OPTIONS="-i p10p1" |
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