Changed /home/ec2-user to ${HOME}
Added touch to restart