diff options
author | raeno <just.raeno@gmail.com> | 2018-12-18 14:59:32 +0100 |
---|---|---|
committer | raeno <just.raeno@gmail.com> | 2018-12-18 14:59:32 +0100 |
commit | a3003364598b42849e384a216948dad810481f51 (patch) | |
tree | 2ed2b04efab457220a60fb7630906b1b26f24df3 /installation/openbsd/rc.d/pleromad | |
parent | 30812f84518f1b2fcc70a416d1a6b9f81264f3a5 (diff) | |
parent | b6ae412fcd7c67d64dd1467e8e35d17140e992df (diff) | |
download | pleroma-a3003364598b42849e384a216948dad810481f51.tar.gz pleroma-a3003364598b42849e384a216948dad810481f51.zip |
Merge branch 'develop' into oembed_provider
Diffstat (limited to 'installation/openbsd/rc.d/pleromad')
-rwxr-xr-x | installation/openbsd/rc.d/pleromad | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/installation/openbsd/rc.d/pleromad b/installation/openbsd/rc.d/pleromad new file mode 100755 index 000000000..19ac4bb51 --- /dev/null +++ b/installation/openbsd/rc.d/pleromad @@ -0,0 +1,34 @@ +#!/bin/ksh +# +# Default init file for Pleroma on OpenBSD +# +# Simple installation instructions: +# 1. Install Pleroma per wiki instructions +# 2. Place this pleromad file in /etc/rc.d +# 3. Enable and start Pleroma +# # doas rcctl enable pleromad +# # doas rcctl start pleromad +# + +daemon="/usr/local/bin/elixir" +daemon_flags="--detached -S /usr/local/bin/mix phx.server" +daemon_user="_pleroma" + +. /etc/rc.d/rc.subr + +rc_reload=NO +pexp="phx.server" + +rc_check() { + pgrep -q -U _pleroma -f "phx.server" +} + +rc_start() { + ${rcexec} "cd pleroma; ${daemon} ${daemon_flags}" +} + +rc_stop() { + pkill -q -U _pleroma -f "phx.server" +} + +rc_cmd $1 |