Quote:
Originally Posted by tankzeu
I have in my test123.service file the following line for ExecStart :
"ExecStart=/home/test/Documents/s (there are 5 spaces here) s/s (there are 10 spaces here) ssss/bin/test123.sh start systemd",which is correct .However when I start the service I get the following error :
" Process: 2864 ExecStart=/home/test/Documents/s s/s ssss/bin/test123.sh start systemd (code=exited, status=203/EXEC)" .It seems that the folders are trimmed and that is why it fails.Any suggestions how can I fix this?
|
so basically you are testing "how can i make systemd fail".
it seems you succeeded.
as far as my experience with systemd, it really likes to adhere to the time-honored tradition of not putting spaces in filenames.
i don't know why you don't use code tags (they preserve formatting) but it looks like all subsequent spaces got concatenated into 1.
you could try escaping each space like this:
Code:
ExecStart=/home/test/Documents/s\ \ \ \ \ sss/..etc.......
and i'm pretty sure the first " (doublequote) belongs AFTER ExecStart=, not before it.