summaryrefslogtreecommitdiff
path: root/restarter/lib/restarter.ex
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-01-28 15:19:05 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-01-28 15:19:05 +0300
commit91ea3ed82cc29f02ae8eec94e4e4ced325a7e008 (patch)
treec97c4f953b4f7dc790452024de7f2468c6e101fb /restarter/lib/restarter.ex
parent7c6e5c541de808957be8a1948fa7a20eba8734df (diff)
downloadpleroma-91ea3ed82cc29f02ae8eec94e4e4ced325a7e008.tar.gz
pleroma-91ea3ed82cc29f02ae8eec94e4e4ced325a7e008.zip
moving restarter application into pleroma repo
Diffstat (limited to 'restarter/lib/restarter.ex')
-rw-r--r--restarter/lib/restarter.ex8
1 files changed, 8 insertions, 0 deletions
diff --git a/restarter/lib/restarter.ex b/restarter/lib/restarter.ex
new file mode 100644
index 000000000..eadd86f89
--- /dev/null
+++ b/restarter/lib/restarter.ex
@@ -0,0 +1,8 @@
+defmodule Restarter do
+ use Application
+
+ def start(_, _) do
+ opts = [strategy: :one_for_one, name: Restarter.Supervisor]
+ Supervisor.start_link([Restarter.Pleroma], opts)
+ end
+end