I have created a Service in my android application which starts automatically on BOOT_COMPLETE through BroadcastReceiver. And That is
Service
BOOT_COMPLETE
BroadcastReceiver
According to Service documentation
The service will at this point continue running until Context.stopService() or stopSelf() is called.
So your service will run forever until system will not decide to kill it because of lack of resources.