How to run asterisk under safe_asterisk

I have installed asterisk from source and it starts automatically at startup using /etc/init.d/asterisk, however this means that asterisk does not restart after a crash. Can anybody help me getting asterisk to run using safe_asterisk ? does it need its own init script to start ? i am running debian 8.7 and asterisk 13.11.2