What is the type of the service of the "syslog.service"?

Thank you marek for the easy command.

I have trouble sometimes wondering how HTB wants us to find these types of answers, your command was so simple but for me I had to go back to “Find Files and Directories” and find some type of command that finds syslog.service and this is what I did:

  1. locate syslog.service
  2. cat /etc/systemd/system/syslog.service
  3. [Service]
    Type=notify

I guess its cool that there are many ways to find these answers, just time consuming.

You can do this:

systemctl show syslog.service | grep ‘Type’

:+1:

Hi! To determine the type of the “syslog.service,” you can use the following command:

systemctl show -p Type syslog.service

notify is the answer.

Took me a while to figure that out too.

Hey guys, I’m still pretty new at all this but this question seemed pretty similar to one of the previous ones in the same module so I tried a similar way to search for the process

‘systemctl | grep “syslog.service”’

Obviously this was wrong, but could someone please explain why and how you’re supposed to tell what command you’re supposed to use in each situation?


Moreover, even after using ‘systemctl’ and going through each individual line, I was still unable to find the ‘syslog.service’ process

What command finds services? Can you find the service file perhaps?

how do you install the syslog service