Search code examples
web-servicessystemd

Systemd service name with spaces


I have created in /etc/systemd/system the following service - my test.service , however when I try to start the service via systemctl start "my test.service" the service does not get started and it is not found.How can I escape the name of the service if it contains spaces?


Solution

  • You can't. systemd.unit(5) clearly states what characters are allowed in unit names.