Skip to content

Instantly share code, notes, and snippets.

@maxheadroom
Created August 5, 2025 06:33
Show Gist options
  • Select an option

  • Save maxheadroom/787c84733ab9fc023921c7bee0216a6f to your computer and use it in GitHub Desktop.

Select an option

Save maxheadroom/787c84733ab9fc023921c7bee0216a6f to your computer and use it in GitHub Desktop.
FediFetcher systemD Service
[Unit]
Description=FediFetcher Script
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/bash /home/user/FediFetcher/FediFetcher.sh
WorkingDirectory=/home/user/FediFetcher
User=username
Group=username
StandardOutput=journal
StandardError=journal
TimeoutStartSec=2700
TimeoutStopSec=60
KillMode=control-group
RemainAfterExit=no
SyslogIdentifier=fedifetcher
ProtectSystem=yes
# ProtectHome=true
PrivateTmp=true
NoNewPrivileges=true
ReadWritePaths=/home/user/FediFetcher
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
@maxheadroom
Copy link
Author

Goes into /etc/systemd/system/fedifetcher.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment