Files
phishingclub/backend/install/systemd.service
T
2025-08-21 16:14:09 +02:00

29 lines
676 B
Desktop File

[Unit]
Description=Phishing Club
After=network.target
Wants=network.target
[Service]
Type=simple
User={{.User}}
Group={{.Group}}
AmbientCapabilities=CAP_NET_BIND_SERVICE
WorkingDirectory={{.InstallDir}}
ExecStart={{.BinaryPath}} --config={{.ConfigPath}} --files={{.DataDir}} --systemd
PrivateTmp=true
NoNewPrivileges=true
ProtectSystem=full
ProtectHome=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
MemoryDenyWriteExecute=true
Restart=always
RestartSec=5s
StartLimitBurst=3 # Allow max 3 restart attempts
StartLimitInterval=60s # Within 60 seconds
[Install]
WantedBy=multi-user.target