-
|
I have a systemd unit file that includes now starting etcd by systemd I get en error on that operation of exporting the custom PATH. We are using similar mechanics for i.e. postgres, so this does not come out of nowhere. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
my bad. misinterpretation of how systemd works. So splitting this in 2 separate lines is the solution here
|
Beta Was this translation helpful? Give feedback.
my bad. misinterpretation of how systemd works.
Putting
exportandassignmentin a single line does work in bash, but not for systemd. I guess it might be due to systemd being super posix compliant.So splitting this in 2 separate lines is the solution here
PATH=$PATH:/opt/custom/etcd/binexport PATH