Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=job to check for disconnected replies in the database

[Service]
Type=exec
ExecStart=/bin/bash -c "/var/www/securedrop/manage.py check-disconnected-db-replies > /var/lib/securedrop/disconnected_db_replies.txt"
PrivateDevices=yes
PrivateTmp=yes
ProtectSystem=full
ReadOnlyDirectories=/
ReadWriteDirectories=/var/lib/securedrop
User=www-data
WorkingDirectory=/var/www/securedrop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=check for disconnected replies 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