[Unit]
Description=Example .NET Web API App running on Ubuntu
[Service]
WorkingDirectory=/var/www/helloapp
ExecStart=/usr/bin/dotnet /var/www/helloapp/helloapp.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=dotnet-example
User=www-data
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
[Install]
WantedBy=multi-user.target
Jan 9 15:43:01 вауцкаук cron[425976]: (root) RELOAD (crontabs/root)
Jan 9 15:43:49 вауцкаук crontab[458898]: (root) LIST (root)
Jan 9 15:54:50 вауцкаук crontab[459234]: (root) BEGIN EDIT (root)
Jan 9 15:55:13 вауцкаук crontab[459234]: (root) REPLACE (root)
Jan 9 15:55:13 вауцкаук crontab[459234]: (root) END EDIT (root)
Jan 9 15:55:27 вауцкаук systemd[1]: cron.service: Succeeded.
Jan 9 15:55:27 вауцкаук cron[459278]: (CRON) INFO (pidfile fd = 3)
Jan 9 15:55:27 вауцкаук cron[459278]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
Jan 9 15:06:58 укауук crontab[458634]: (root) LIST (root)
Jan 9 15:09:31 укауук crontab[458699]: (root) LIST (root)
Jan 9 15:17:01 укауук CRON[458715]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jan 9 15:42:18 ruvds-qevf5 crontab[458859]: (root) BEGIN EDIT (root)
Jan 9 15:42:26 укауук crontab[458859]: (root) REPLACE (root)
Jan 9 15:42:26 укауук crontab[458859]: (root) END EDIT (root)
Jan 9 15:43:01 укауук cron[425976]: (root) RELOAD (crontabs/root)
Jan 9 15:43:49 укауук crontab[458898]: (root) LIST (root)
а скрипт правильно указан? из консоли рестар сервиса срабатывает?