Files
@ ad2edca1540f
Branch filter:
Location: website/deploy/systemd/conservancy-www-cleanup.service - annotation
ad2edca1540f
613 B
text/plain
Merge branch 'master' of ssh://k.sfconservancy.org/website
03e06738a00c 03e06738a00c bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db 053504d099b8 053504d099b8 bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db bdac443c16db | # Remove old Django login sessions.
[Unit]
Description=Cleanup Conservancy website
Before=apache2.service
[Service]
Type=oneshot
User=www-data
ExecStart=/usr/bin/python3 /var/www/website/www/manage.py clearsessions --verbosity 0
SystemCallFilter=~@clock @cpu-emulation @debug @module @mount @obsolete
CapabilityBoundingSet=
NoNewPrivileges=true
PrivateDevices=true
PrivateNetwork=true
PrivateTmp=true
PrivateUsers=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
ReadWritePaths=/var/lib/www/database
[Install]
WantedBy=apache2.service
|