Мне нужно стартовать,останавливать,рестартить сервак
Создал юнит,прописал в нем:
[Unit]
Description=server service
After=network.target
[Service]
Type=forking
ExecStart=/home/dima/Загрузки/Свой сервер/server
Restart=always
[Install]
WantedBy=multi-user.target
Но он не работает,вот логи:
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'.