Всем привет! Сделал unit для автозапуска своего pho. Он тянет url с моего же сервера на Raspberry Pi.
[Unit]
Description=Ping service
[Service]
WorkingDirectory=/tmp
ExecStart=/usr/bin/wget http://127.0.0.1:80/task_manager.php
Restart=always
# Restart service after 60 seconds
RestartSec=60
KillSignal=SIGINT
SyslogIdentifier=pingsvc
User=www-root
#Environment=ASPNETCORE_ENVIRONMENT=Production
#Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
[Install]
WantedBy=multi-user.target
Но при проверке статуса выдаёт такую ошибку
myunit.service - Ping service
Loaded: loaded (/etc/systemd/system/myunit.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-11-28 18:41:47 CET; 52s ago
Process: 2616 ExecStart=/usr/bin/wget http://127.0.0.1:80/task_manager/index.php (code=exited, status=217/USER)
Main PID: 2616 (code=exited, status=217/USER)
Nov 28 18:41:47 openhabian systemd[1]: myunit.service: Service RestartSec=1s expired, scheduling restart.
Nov 28 18:41:47 openhabian systemd[1]: myunit.service: Scheduled restart job, restart counter is at 5.
Nov 28 18:41:47 openhabian systemd[1]: Stopped Ping service.
Nov 28 18:41:47 openhabian systemd[1]: myunit.service: Start request repeated too quickly.
Nov 28 18:41:47 openhabian systemd[1]: myunit.service: Failed with result 'exit-code'.
Nov 28 18:41:47 openhabian systemd[1]: Failed to start Ping service.
Там как я понял с пользователем проблема. Только не пойму какого указать там или создать? Подскажите пожалуйста!