summaryrefslogtreecommitdiff
path: root/restarter/lib/restarter.ex
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-02-08 19:59:37 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-02-08 19:59:37 +0300
commit4e6bbdc7b549e630141cb10d383a42055f06dc16 (patch)
treed0675328c7fc75f612eab779289afabee27a40a8 /restarter/lib/restarter.ex
parentd458f4fdcafe847a7db8b1c663cfd945019816b7 (diff)
parent964b4d82a0cde5b552b6210400c5e2c747a2f0e0 (diff)
downloadpleroma-4e6bbdc7b549e630141cb10d383a42055f06dc16.tar.gz
pleroma-4e6bbdc7b549e630141cb10d383a42055f06dc16.zip
Merge remote-tracking branch 'remotes/origin/develop' into 1505-threads-federation
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