add torrserver scripts

This commit is contained in:
Roman Gogolev 2023-09-26 17:41:26 +03:00
parent f6a3fc0440
commit 42ee6e835a
1 changed files with 2 additions and 2 deletions

View File

@ -31,11 +31,11 @@ msg_info "Creating Service"
cat <<EOF >/etc/init.d/torrserver
#!/sbin/openrc-run
name="busybox $RC_SVCNAME"
name="busybox \$RC_SVCNAME"
command="/opt/torrserver/TorrServer-linux-amd64"
command_args="--port 8090 --logpath /var/log/torrserver.log --path /opt/torrserver"
command_user="torrserver:torrserver"
pidfile="/run/$SVCNAME.pid"
pidfile="/run/\$SVCNAME.pid"
command_background=true
depend() {