onStartCommand

open override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int

Keeps the service sticky so the system restarts it after being killed.