# Service deployment and monitoring

Today we did service deployment for dot net with ubuntu server.

**Steps:**&#x20;

```
1) Download the rar file from mail
2) Extract the file
3) Change the directory inside the folder including .dll files
4) Move the folder to /srv directory
```

```
mv foldername /srv/
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FxraKtdIH6WPxd5Nsh3Ck%2Fimage.png?alt=media&#x26;token=d626a4d5-8513-4a6b-966b-856c9d0a2d60" alt=""><figcaption><p>srv files</p></figcaption></figure>

Now go to the services directory:&#x20;

```
cd /etc/systemd/system
ls
#you can see services files here
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2F2J6Tl5jHuIhNPS1CeOaY%2Fimage.png?alt=media&#x26;token=54c2e77c-2311-41c7-9e41-7bfb800b6fd0" alt=""><figcaption></figcaption></figure>

```
#enable the service
sudo systemctl enable *-servicename.service
#start the service
sudo systemctl start *-servicename.service
#get status of the service
sudo systemctl status *-servicename.service
```

Now, check the services running in name of "hicare" using the command:

```
systemctl | grep "hicare"
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2F4eb9OqzALzwF6046Qh6P%2Fimage.png?alt=media&#x26;token=3c2ca85b-4f77-470f-bad4-5720566c22fc" alt=""><figcaption></figcaption></figure>
