systemd does not work with escaped paths
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Cannot start systemd service using paths with spaces:
systemd unit file content:
[Unit]
Description=
[Service]
Type=forking
WorkingDirector
ExecStart=
[Install]
WantedBy=
Although systemd-escape converts "/usr/Socomec UPS/LocalView" path to usr-Socomec\
systemd complains it is not an absolute path when the '/' in front of it is missing in the unit file:
systemd[1]: /etc/systemd/
The same applies for ExecStart entry.
When the syntax check was satisfied I tried to run the service:
systemd[11574]: localview.service: Changing to the requested working directory failed: No such file or directory
systemd[11574]: localview.service: Failed at step CHDIR spawning /usr-Socomec UPS-LocalView-
# ll "/usr/Socomec UPS/LocalView/
-rwx--x--x 1 root root 220 kvě 26 17:27 '/usr/Socomec UPS/LocalView/
Unescaped path in the unit file obviously does not work either.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: systemd 237-3ubuntu10
ProcVersionSign
Uname: Linux 4.15.0-20-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat May 26 18:53:31 2018
InstallationDate: Installed on 2018-05-25 (1 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
MachineType: Gigabyte Technology Co., Ltd. EP45-DS3R
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
SystemdDelta:
[EXTENDED] /lib/systemd/
[EXTENDED] /lib/systemd/
2 overridden configuration files found.
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/03/2009
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F11e
dmi.board.name: EP45-DS3R
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSof
dmi.product.name: EP45-DS3R
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
please reopen if this is still an issue