# /etc/systemd/system/moochy.service [Unit] Description=Moochy (donation) After=network-online.target Wants=network-online.target [Service] User=moochy ExecStart=/usr/local/bin/moochy --home /var/lib/moochy up --foreground # MOOCHY_PASSPHRASE=… in a file readable only by root (chmod 600) EnvironmentFile=/etc/moochy/passphrase.env Restart=on-failure NoNewPrivileges=true ProtectSystem=strict ProtectHome=true ReadWritePaths=/var/lib/moochy PrivateTmp=true [Install] WantedBy=multi-user.target