|
systemctl enable : Failed to execute operation: Invalid argument
|
|||
---|---|---|---|
#18+
Добрый день всем! Файл моего сервиса kestrel-test.service вот такой: [Unit] Description=Example .NET Web API Application running on Ubuntu [Service] WorkingDirectory=/home/.../projects/csharp/testws/bin/Debug/netcoreapp2.0/publish ExecStart=/usr/bin/dotnet /home/.../projects/csharp/testws/bin/Debug/netcoreapp2.0/publish/testws.dll Restart=always RestartSec=10 SyslogIdentifier=dotnet-example User=www-data Environment=ASPNETCORE_ENVIRONMENT=Production Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false [Install] WantedBy=multi-user.targ . Он лежит в папке /etc/systemd/system. Пытаюсь поставить его в автостарт вот так: sudo systemctl enable kestrel-test . Выдаётся ошибка: Failed to execute operation: Invalid argument . Которая ни о чём не говорит. Никто не знает в чём дело? Заранее спасибо. ... |
|||
:
Нравится:
Не нравится:
|
|||
09.01.2018, 12:51 |
|
systemctl enable : Failed to execute operation: Invalid argument
|
|||
---|---|---|---|
#18+
ДжекНикто не знает в чём дело?логи должны знать ... |
|||
:
Нравится:
Не нравится:
|
|||
09.01.2018, 15:01 |
|
systemctl enable : Failed to execute operation: Invalid argument
|
|||
---|---|---|---|
#18+
Вот где ошибка была: [Install] WantedBy=multi-user. targ . А надо так: [Install] WantedBy=multi-user. target . ... |
|||
:
Нравится:
Не нравится:
|
|||
09.01.2018, 15:07 |
|
|
start [/forum/topic.php?fid=25&msg=39581108&tid=1481423]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
51ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
42ms |
get tp. blocked users: |
1ms |
others: | 272ms |
total: | 412ms |
0 / 0 |