D
D
Dmitry2019-06-26 21:18:18
ubuntu
Dmitry, 2019-06-26 21:18:18

Why is the server not starting via systemd?

I need to start, stop, restart the server I
created a unit, wrote in it:

[Unit]
Description=server service
After=network.target

[Service]
Type=forking
ExecStart=/home/dima/Загрузки/Свой сервер/server
Restart=always


[Install]
WantedBy=multi-user.target

But it doesn't work, here are the logs:
server.service - server service
   Loaded: loaded (/etc/systemd/system/server.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit-hit) since Cho 2019-06-26 23:39:28 +05; 2min 17s ago

Iyn 26 23:39:28 dima-VirtualBox systemd[1]: server.service: Control process exited, code=exited status=203
Iyn 26 23:39:28 dima-VirtualBox systemd[1]: Failed to start server service.
Iyn 26 23:39:28 dima-VirtualBox systemd[1]: server.service: Unit entered failed state.
Iyn 26 23:39:28 dima-VirtualBox systemd[1]: server.service: Failed with result 'exit-code'.
Iyn 26 23:39:28 dima-VirtualBox systemd[1]: server.service: Service hold-off time over, scheduling restart.
Iyn 26 23:39:28 dima-VirtualBox systemd[1]: Stopped server service.
Iyn 26 23:39:28 dima-VirtualBox systemd[1]: server.service: Start request repeated too quickly.
Iyn 26 23:39:28 dima-VirtualBox systemd[1]: Failed to start server service.
Iyn 26 23:39:28 dima-VirtualBox systemd[1]: server.service: Unit entered failed state.
Iyn 26 23:39:28 dima-VirtualBox systemd[1]: server.service: Failed with result 'start-limit-hit'.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2019-06-26
@dimonsious

In quotation marks, the path that you take with spaces to start with. Or escape with backslashes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question