# Run function on startup

**URL:** <https://forum.elixirforum.com/t/run-function-on-startup/30289>\
**Category:** Questions\
**Tags:** startup\
**Created:** [April 1, 2020, 3:34pm UTC](https://forum.elixirforum.com/t/run-function-on-startup/30289 "2020-04-01T15:34:20Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![entone](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/entone/32/18061_2.png) [@entone](https://forum.elixirforum.com/u/entone)\
**Post date:** [April 1, 2020, 4:00pm UTC](https://forum.elixirforum.com/t/run-function-on-startup/30289/3 "2020-04-01T16:00:16Z")

</div>

You can also use the `:ignore` return value in a GenServer init callback in your supervision tree, that will run your init callback and then kill/ignore the process after it’s run.

---

_[View the full topic](https://forum.elixirforum.com/t/run-function-on-startup/30289)._
