add torrserver scripts

This commit is contained in:
Roman Gogolev 2023-09-26 18:11:50 +03:00
parent 42ee6e835a
commit 76b4ea3f38
1 changed files with 5 additions and 1 deletions

View File

@ -31,7 +31,7 @@ msg_info "Creating Service"
cat <<EOF >/etc/init.d/torrserver
#!/sbin/openrc-run
name="busybox \$RC_SVCNAME"
name="TorrServer"
command="/opt/torrserver/TorrServer-linux-amd64"
command_args="--port 8090 --logpath /var/log/torrserver.log --path /opt/torrserver"
command_user="torrserver:torrserver"
@ -46,5 +46,9 @@ $STD chmod a+x /etc/init.d/torrserver
$STD rc-update add torrserver
msg_info "Created Service"
msg_info "Starting Service"
$STD rc-service torrservice start
msg_info "Started Service"
motd_ssh
customize