My phone has been frozen since when I opened Cydia and it started updating something. How can I restart it? I dont want to restore so I can still keep it jailbroken.

Its iphone 3GS jailbroken with spiritjb. OS 13.3. Baseband 5112.