]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
proftpd: don't test if the binary exists in the init script
authorCarlos Santos <casantos@datacom.ind.br>
Mon, 16 Apr 2018 02:29:36 +0000 (23:29 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 16 Apr 2018 05:34:55 +0000 (07:34 +0200)
The test doesn't make sense. It just exits without any error if the
binary doesn't exist, which is silly.

Replace the DAEMON variable, which was used only once, by the full path
of the binary file.

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/proftpd/S50proftpd

index 336680a45665f6c6e6c67fcf3d273c674c9a7b08..3f9070f26a0ff0387025bd6ec92c7a2e2791ee18 100755 (executable)
@@ -1,15 +1,13 @@
 #!/bin/sh
 
-DAEMON=/usr/sbin/proftpd
 trap "" HUP
 trap "" TERM
-test -f $DAEMON || exit 0
 [ ! -d /var/run/proftpd ] && mkdir /var/run/proftpd
 [ ! -f /var/log/wtmp ] && touch /var/log/wtmp
 
 start() {
        printf "Starting ProFTPD: "
-       $DAEMON
+       /usr/sbin/proftpd
        if [ $? != 0 ]; then
                echo "FAILED"
                exit 1