Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Help running dotnet service in OsX.

$
0
0

Hi, I dont even know if I am in the right place. But I would like this running and I am lost. 

This is what I am suppose to do:

If you are on linux and want to run Feeder as a System service
1) vi /etc/systemd/system/ptf.service
2) Hit i key to get into insert mode and then paste the following


 `Description=Feeder`

 `[Service]`

 `WorkingDirectory=/bot/feeder`

 `ExecStart=/usr/bin/dotnet feeder.dll`

 `Type=Simple`

 `User=bot`

 `SyslogIdentifier=feeder`

 `[Install]`

 `WantedBy=multi-user.target`
  1. Press the ESC key, and type :wq! to save and exit

    Please ensure that WorkingDirectory points to the folder you extracted ptf a Please change the User= line above to match the name of the system user you will be using to run ptf

    1. You can start and stop ptf now, using the following commands:
      sudo systemctl start ptf / sudo systemctl stop ptf

My problem in the Terminal is this:

sudo systemctl start ptf
Password:
sudo: systemctl: command not found

Can anyone please guide me?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>