# SPDX-FileCopyrightText: 2025 Chris Duncan # SPDX-License-Identifier: GPL-3.0-or-later ## Example systemd service unit file to start the nano-pow server at login. ## Run `systemctl --user edit --force --full nano-pow.service` ## Copy contents below into editor, modify WorkingDirectory as needed, and save. ## Run `systemctl --user enable nano-pow --now` to start it now and at boot. [Unit] Description=NanoPow Server [Service] # Must point at install path, often in `npm_config_prefix` directory: WorkingDirectory=%h/.local/lib/node_modules/nano-pow Type=simple ExecStart=/usr/bin/npm start EnvironmentFile=-%h/.nano-pow/config PassEnvironment=NANO_POW_DEBUG NANO_POW_EFFORT NANO_POW_PORT [Install] WantedBy=default.target