While restarting SSH service, you may encounter the error message as :
Code:
[root@server~]#/etc/init.d/sshd restart
touch: cannot touch `/var/lock/subsys/sshd': No such file or directory
Change the directory path as :
Check if the directory "subsys" exists or not, if not then you will need to create the folder and give the permission as :
Code:
mkdir subsys
chmod 755 subsys
Once you have created the directory. Try to restart sshd service.
Thanks