1
0
Fork 0
forked from mia/0x0

Add example systemd unit files for prune job

This commit is contained in:
Mia Herkt 2022-11-29 17:23:30 +01:00
parent f25619b7e3
commit db9a20c94d
No known key found for this signature in database
GPG key ID: 72E154B8622EC191
3 changed files with 39 additions and 2 deletions

22
0x0-prune.service Normal file
View file

@ -0,0 +1,22 @@
[Unit]
Description=Prune 0x0 files
After=remote-fs.target
[Service]
Type=oneshot
User=nullptr
WorkingDirectory=/path/to/0x0
BindPaths=/path/to/0x0
Environment=FLASK_APP=fhost
ExecStart=/usr/bin/flask prune
ProtectProc=noaccess
ProtectSystem=strict
ProtectHome=tmpfs
PrivateTmp=true
PrivateUsers=true
ProtectKernelLogs=true
LockPersonality=true
[Install]
WantedBy=multi-user.target