-
Notifications
You must be signed in to change notification settings - Fork 685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd on Ubuntu 16.04 has wrong WorkingDirectory #63
Comments
Had the same problem and i didn't had RootDirectory. Without RootDirectory i had the same problem with the working dir, even if i've removed the " |
Thanks for the report. I need to look into systemd unit files more, again. |
Hi, Thanks |
I have not yet looked into this. Thanks for the ping. I'll research this later this week hopefully. |
Can you please provide some alternative approach for this. As my service is not running properly due to this. I need to change the current working directory to some other dir in service file. which will enable my server to pick the correct path using PWD. |
Any update on this? |
I don't know for RootDirectory but WorkingDirectory doesn't support double quotes (at least with the version of systemd that's present on Ubuntu 16.04). The solution is to escape the path with
More info here: |
With current master, upon installing the service, I get a config file like the following:
However, the application gets a working directory of / . syslog from the install shows:
When I removed the quotes around the WorkingDirectory item (but not RootDirectory), and ran
systemctl daemon-reload
, the service started as expected, with the correct working directory.As a side note, if I removed quotes from the RootDirectory item, the service wouldn't start, it complained about the application name.
The text was updated successfully, but these errors were encountered: