overlay/www-apps/misskey/files/misskey.initd
tastytea e7a78e4bf8
www-apps/misskey: add logging to init script
Signed-off-by: tastytea <tastytea@tastytea.de>
2023-01-24 11:49:43 +01:00

22 lines
400 B
Plaintext

#!/sbin/openrc-run
name=misskey
description="Misskey daemon"
command="/usr/bin/npm"
command_args="start"
command_user="misskey"
logdir="/var/log/${name}"
output_log="${logdir}/${name}.log"
error_log="${logdir}/error.log"
supervisor="supervise-daemon"
supervise_daemon_args=" -d /opt/misskey/misskey -e NODE_ENV=\"production\""
pidfile="/run/${RC_SVCNAME}.pid"
depend() {
need net
use logger
}