summaryrefslogtreecommitdiff
path: root/restarter/lib/restarter.ex
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-02-05 16:59:21 +0000
committerrinpatch <rinpatch@sdf.org>2020-02-05 16:59:21 +0000
commit49e80a15377fe460d7ac644601609700fffea632 (patch)
treeaf98f0e28eb063c48152658294a4dce0d05131d4 /restarter/lib/restarter.ex
parenta56db789359c7c7d57b45e6c68f791eeadc171e4 (diff)
parent33bd8fbffea79b8ca510a098ad4654b8f01324d6 (diff)
downloadpleroma-49e80a15377fe460d7ac644601609700fffea632.tar.gz
pleroma-49e80a15377fe460d7ac644601609700fffea632.zip
Merge branch 'feature/restart-pleroma-from-outside-application' into 'develop'
Restarting pleroma from outside application See merge request pleroma/pleroma!2144
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