goMarkableStream
goMarkableStream copied to clipboard
setting username and password in systemd unit file
I have tied the following, but doesn't appear to read the variables correctly:
[Unit]
Description=Go Remarkable Stream Server
[Service]
Environment="RK_SERVER_USERNAME=username RK_SERVER_PASSWORD=password"
ExecStart=/home/root/goMarkableStream_linux_arm/goMarkableStream
Restart=always
[Install]
WantedBy=multi-user.target
is there a better way to set those vars?
I think your quoting is off. See https://www.man7.org/linux/man-pages/man5/systemd.exec.5.html, section Environment.
Using multiple Environment= directives avoids the quoting issues and may be easier to read:
Environment="RK_SERVER_USERNAME=root"
Environment="RK_SERVER_PASSWORD=toor"