Power supply self control using transistor

Edit: S makes Q output to go high and stay there forever or until you make R active. R makes Q go low and stay there forever or until you make S active.

Now you should use Google again.