First, I am connecting to a Red Hat machine which is identified from the following:
cat /proc/version Linux version 4.2.2-1.el7.elrepo.x86_64 (mockbuild@Build64R7) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Wed Sep 30 15:08:55 EDT 2015
I had modified the /etc/samba/smb.conf to include the directory which I want to share. In the past I would issue the following to restart the service
sudo service smbd restart
But I receive the following message
Redirecting to /bin/systemctl restart smbd.service Failed to restart smbd.service: Unit not found.
In the past I might had looked in /etc/rc.d/init.d/ for the service, but it doesn't show the smbd service there. I know the service is running by the following:
netstat -plnt | grep smbd tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 1753/smbd tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 1753/smbd tcp6 0 0 :::139 :::* LISTEN 1753/smbd tcp6 0 0 :::445 :::* LISTEN 1753/smbd
From one of the outputs of the command I saw systemd was being used, so following some instructions from a site I tried the following (and it failed):
systemctl stop smbd.service Failed to stop smbd.service: Unit smbd.service not loaded.
So, now I am at a lost and my search fu has yield nothing to help me find where these services are located and how to query their status, stop/start/restart them.