I am in situation where i want to kill a process if exist & restart the same. How to do it?
currently i am doing this
killall -9 inetd && /bin/inetd
If inetd is not running i get this
killall: /bin/inetd: no process killed
Even though inetd is not running i want the above command to be successful.