mirror of https://github.com/tteck/Proxmox.git
add torrserver scripts
This commit is contained in:
parent
42ee6e835a
commit
76b4ea3f38
|
@ -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
|
Loading…
Reference in New Issue