-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7015 from freedomofpress/backport-7009
[2.7.0] Backport "fix(ossec): run "disconnected submissions" checks from systemd timers; report on saved output"
- Loading branch information
Showing
7 changed files
with
81 additions
and
4 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
12 changes: 12 additions & 0 deletions
12
...p/debian/app-code/lib/systemd/system/securedrop-check-disconnected-db-submissions.service
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,12 @@ | ||
[Unit] | ||
Description=job to check for disconnected submissions in the database | ||
|
||
[Service] | ||
ExecStart=/bin/bash -c "/var/www/securedrop/manage.py check-disconnected-db-submissions > /var/lib/securedrop/disconnected_db_submissions.txt" | ||
PrivateDevices=yes | ||
PrivateTmp=yes | ||
ProtectSystem=full | ||
ReadOnlyDirectories=/ | ||
ReadWriteDirectories=/var/lib/securedrop | ||
User=www-data | ||
WorkingDirectory=/var/www/securedrop |
9 changes: 9 additions & 0 deletions
9
...rop/debian/app-code/lib/systemd/system/securedrop-check-disconnected-db-submissions.timer
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,9 @@ | ||
[Unit] | ||
Description=check for disconnected submissions in the database | ||
|
||
[Timer] | ||
# We want to run this 1 hour before reboot, or 23h after the last reboot | ||
OnBootSec=23h | ||
|
||
[Install] | ||
WantedBy=timers.target |
12 changes: 12 additions & 0 deletions
12
...p/debian/app-code/lib/systemd/system/securedrop-check-disconnected-fs-submissions.service
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,12 @@ | ||
[Unit] | ||
Description=job to check for disconnected submissions on the filesystem | ||
|
||
[Service] | ||
ExecStart=/bin/bash -c "/var/www/securedrop/manage.py check-disconnected-fs-submissions > /var/lib/securedrop/disconnected_fs_submissions.txt" | ||
PrivateDevices=yes | ||
PrivateTmp=yes | ||
ProtectSystem=full | ||
ReadOnlyDirectories=/ | ||
ReadWriteDirectories=/var/lib/securedrop | ||
User=www-data | ||
WorkingDirectory=/var/www/securedrop |
9 changes: 9 additions & 0 deletions
9
...rop/debian/app-code/lib/systemd/system/securedrop-check-disconnected-fs-submissions.timer
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,9 @@ | ||
[Unit] | ||
Description=check for disconnected submissions on the filesystem | ||
|
||
[Timer] | ||
# We want to run this 1 hour before reboot, or 23h after the last reboot | ||
OnBootSec=23h | ||
|
||
[Install] | ||
WantedBy=timers.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
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