I'm trying to define a service startup which requires a decryption password set as a variable, along with another couple of variables. That encryption password has %c
as part of the variable's contents, and this is causing a problem that I can't seem to get around.
If I go between editing the service definition, doing a systemctl daemon-reload
, then systemctl show | grep Env
, I can see that....
if I set
Environment="PASSWORD=blah%ci"
then I getEnvironment=PASSWORD=blah/servicei
if I set
Environment="PASSWORD=blah\%ci"
then I getEnvironment=
I also tried enclosing that variable in various different quotes without any real change of behaviour.
I'm using Ubuntu 20.04.
Thanks in advance.