@dev@post.naskya.net
FreeBSD rcスクリプトができました
#!/bin/sh
# PROVIDE: firefish
# REQUIRE: DAEMON redis caddy postgresql
# KEYWORD: shutdown
. /etc/rc.subr
name=firefish
rcvar=firefish_enable
desc="Firefish daemon"
load_rc_config ${name}
: ${firefish_chdir:="/home/firefish/firefish"}
: ${firefish_env:="npm_config_cache=/tmp NODE_ENV=production NODE_OPTIONS=--max-old-space-size=3072"}
pidfile="/var/run/${name}.pid"
command=/usr/sbin/daemon
command_args="-f -S -u firefish -P ${pidfile} /usr/local/bin/pnpm run start"
run_rc_command "$1"
Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
SyoBoN (syobon@fi.syobon.net)'s status on Saturday, 29-Jun-2024 19:07:55 JSTSyoBoN