Would you be interested in a systemd service file to run this as a service?
Description
I've created and included a hardened systemd service file in the AUR packages. It leverages a conf.d file to pull some values without having to override the service, which was designed by @IcyColdified.
I use this on Pi4 (Debian 12): /etc/systemd/system/spoofdpi.service
[Unit]
Description=SpoofDPI service
After=network.target
[Service]
Type=simple
User=harry
ExecStart=/home/harry/.spoofdpi/bin/spoofdpi -addr 0.0.0.0 -dns-addr 192.168.5.1 -banner=false -system-proxy=false
Restart=on-failure
[Install]
WantedBy=multi-user.target
Yeah sounds great.
What directory should I add it in?
Will it be just a single file? then it's fine to add it to the root directory
It's two files.
would it be okay to put them in /_assets/systemd ?
Yes that seems okay for now. We can move them later when we handle packaging.