# Raspberry PI resets every ~40 seconds if offline

**URL:** <https://forums.balena.io/t/raspberry-pi-resets-every-40-seconds-if-offline/1556>\
**Category:** Product support\
**Tags:** network\
**Created:** [August 2, 2017, 7:31am UTC](https://forums.balena.io/t/raspberry-pi-resets-every-40-seconds-if-offline/1556 "2017-08-02T07:31:00Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [August 4, 2017, 10:03am UTC](https://forums.balena.io/t/raspberry-pi-resets-every-40-seconds-if-offline/1556/15 "2017-08-04T10:03:40Z")

</div>

A question, are you using the resin-made base images? Because the INITSYSTEM variable only has effect on our own base images, obviously not for the external ones. From the code you shared with us seems you are using an upstream image, not a resin-provided one.

I’ve tried it out, and you are correct, that with `INITSYSTEM=on`, application exiting won’t stop the container. 👍 So based on that and what you mentioned, I’d probably set up your application’s start with a systemd system file, and then you can set your own restart policy as well easily, and so on.

* * *

One side note, [there’s an open issue](https://github.com/resin-io-library/base-images/issues/319) for Debian Stretch using the `INITSYSTEM` settings, so that won’t work at the momemnt, but we’re fixing it. Jessie works correctly, though, in case.

---

_[View the full topic](https://forums.balena.io/t/raspberry-pi-resets-every-40-seconds-if-offline/1556)._
