Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
sh
configure.sh 0.7 kB 3 11-Mar-2020 09:49 Ben Spink
sh
crushftp_init.sh 3.9 kB 1 25-Oct-2018 04:31 Ben Spink

This page (revision-40) was last changed on 06-May-2021 09:35 by krivacsz

This page was created on 25-Oct-2018 04:31 by Ben Spink

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 19 changed one line
You can also install open java 11 as that works just fine as well.
You can also install open java 13 as that works just fine as well.
At line 106 changed one line
__Running as non-root__
__Running as non-root (not recommanded)__
\\
\\
At line 108 changed 3 lines
This method details only how to run from rc.local on a systemd init based Linux flavor. Running as a non-root user won't allow binding to ports below 1024, will need to use NAT or port rewrite rules in iptables to be able to server on IANA defined well known ports.
{{{
running crush in user mode as <user> by adding below lines into rc.local
This method details how to run from rc.local on a systemd init based Linux flavor. Running as a non-root user won't allow binding to ports below 1024, will need to use NAT or port rewrite rules in iptables to be able to server on IANA defined well known ports.
At line 112 changed one line
su - <user> -c '/var/opt/CrushFTP7_PC/crushftp_init.sh start'
Running crush in user mode as "crushftp" system user, by adding below lines into rc.local (generic method)
{{{
su - crushftp -c '/var/opt/CrushFTP9_PC/crushftp_init.sh start'
At line 116 added 6 lines
}}}
\\
This may be required in case daemon mode doesn't output to nohup.out, in this case modify the init script as
\\
{{{
$NOHUP $JAVA -Ddir=$CRUSH_DIR -Xmx384M -jar plugins/lib/CrushFTPJarProxy.jar -d 2>>nohup.out &
At line 115 changed one line
this may be required in case daemon mode doesn't output to nohup.out, in this case modify the init script as
}}}
\\
\\
Running in user mode on systemd RHEL 7/8 family Linux
\\
First in crushftp_init.sh will need to set the user as "crushftp" ( or whatever non-root user) then allow rc-local.service to be able to run ( needed for compatibility mode, non root user)
\\
{{{
touch /etc/systemd/system/rc-local.service
vi /etc/systemd/system/rc-local.service
}}}
\\
paste into below
\\
{{{
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
At line 117 changed one line
$NOHUP $JAVA -Ddir=$CRUSH_DIR -Xmx384M -jar plugins/lib/CrushFTPJarProxy.jar -d 2>>nohup.out &
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
At line 150 added 3 lines
[Install]
WantedBy=multi-user.target
At line 154 added one line
\\
At line 156 added 79 lines
then edit /etc/rc.local
\\
{{{
vi /etc/rc.local
}}}
\\
add in
\\
{{{
su crushftp /var/opt/CrushFTP9_PC/crushftp_init.sh start
exit 0
}}}
\\
then make it executable
\\
{{{
chmod +x /etc/rc.local
}}}
\\
then install the rc.local service
\\
{{{
systemctl enable rc-local.service
}}}
\\
reboot, check if OK
\\
\\
\\
Obsolete system V init method
\\
\\
create new scriptfile
\\
{{{
touch /etc/init.d/crushftp
}}}
\\
add this script to /etc/init.d/crushftp
\\
{{{
#!/bin/bash
#!/bin/sh
#
# Control script for CrushFTP v1.4 running as crushuser
#
# chkconfig: - 86 14
# description: CrushFTP
#
# BEGIN INIT INFO
# Provides: crushftp
# Required-Start: $local_fs
# Should-Start: $network
# Required-Stop:
# Should-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 2 5
# Short-Description: CrushFTP Server
# Description: Starts Crush on boot
# END INIT INFO
runuser crushuser -c "/var/opt/CrushFTP9_PC/crushftp_init.sh $1"
################################################################
}}}
\\
make it executable
\\
{{{
chmod 755 /etc/init.d/crushftp
}}}
\\
install service
\\
{{{
chkconfig --add crushftp
chkconfig crushftp on
service crushftp start
}}}
Version Date Modified Size Author Changes ... Change note
40 06-May-2021 09:35 6.85 kB krivacsz to previous
39 24-Jul-2020 12:59 6.85 kB krivacsz to previous | to last
38 24-Jul-2020 12:53 6.85 kB Ada Csaba to previous | to last
37 24-Jul-2020 12:52 6.846 kB Ada Csaba to previous | to last
36 24-Jul-2020 12:51 6.847 kB Ada Csaba to previous | to last
35 24-Jul-2020 12:50 6.829 kB Ada Csaba to previous | to last
34 24-Jul-2020 12:46 5.906 kB Ada Csaba to previous | to last
33 24-Jul-2020 12:45 5.9 kB Ada Csaba to previous | to last
32 24-Jul-2020 12:43 4.872 kB Ada Csaba to previous | to last
31 24-Jul-2020 12:41 4.845 kB Ada Csaba to previous | to last
30 24-Jul-2020 12:41 4.849 kB Ada Csaba to previous | to last
29 24-Jul-2020 12:39 4.83 kB Ada Csaba to previous | to last
28 24-Jul-2020 12:38 4.828 kB Ada Csaba to previous | to last
27 24-Jul-2020 12:37 4.512 kB Ada Csaba to previous | to last
26 11-Mar-2020 09:01 4.163 kB Ben Spink to previous | to last
25 21-Dec-2018 16:31 3.957 kB Halmágyi Árpád to previous | to last
24 25-Oct-2018 04:31 3.77 kB Halmágyi Árpád to previous | to last
23 25-Oct-2018 04:31 3.496 kB Ben Spink to previous | to last
22 25-Oct-2018 04:31 3.431 kB Ben Spink to previous | to last
21 25-Oct-2018 04:31 3.616 kB Ben Spink to previous | to last
« This page (revision-40) was last changed on 06-May-2021 09:35 by krivacsz
G’day (anonymous guest)
CrushFTP9 | What's New

Referenced by
LeftMenu

JSPWiki