November 30, 2016

Lab 4.1 fake_service error (Unary operator expected)

Lab 4.1 

Hi, i am having issues with starting fake_service from lab 4.1

I am running CentOS 6.6

I did everything correct in the script, copied the script provided by the lab and compared it for any errors. I am trying to run the script by doing service fake_service start (i am in root mode, that is why i didn't add sudo), and i get message.... 

Running fake service in start mode... /etc/init.d/fake_service: line 15: [: =: unary operator expected

What could be causing this? Any guesses? 


Thanks in advance! 

Click Here!