goMarkableStream icon indicating copy to clipboard operation
goMarkableStream copied to clipboard

setting username and password in systemd unit file

Open zeigerpuppy opened this issue 4 months ago • 1 comments

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?

zeigerpuppy avatar Aug 29 '25 08:08 zeigerpuppy

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"

schwesinger avatar Sep 16 '25 12:09 schwesinger