

| The Following User Says Thank You to 11/(14-17)/09 For This Useful Post: | ||
| The Following User Says Thank You to taril For This Useful Post: | ||
$ /opt/sbin/proftpd vendetta-n900 - PRIVS_ROOT: unable to seteuid(): Operation not permitted vendetta-n900 - PRIVS_ROOT: unable to setegid(): Operation not permitted vendetta-n900 - PRIVS_RELINQUISH: unable to seteuid(PR_ROOT_UID): Operation not permitted vendetta-n900 - PRIVS_RELINQUISH: unable to setegid(session.gid): Operation not permitted vendetta-n900 - PRIVS_RELINQUISH: unable to seteuid(session.uid): Operation not permitted vendetta-n900 - mod_delay/0.6: error opening DelayTable '/opt/var/proftpd/proftpd.delay': No such file or directory vendetta-n900 - unable to set daemon groups: Operation not permitted vendetta-n900 - unable to set uid to 65534, current uid: 29999
#!/bin/sh
# ProFTPD files
FTPD_BIN=/opt/sbin/proftpd
FTPD_CONF=/opt/etc/proftpd.conf
PIDFILE=/home/opt/var/proftpd/proftpd.pid
# If PIDFILE exists, does it point to a proftpd process?
if [ -f $PIDFILE ]; then
pid=`cat $PIDFILE`
fi
if [ ! -x $FTPD_BIN ]; then
echo "$0: $FTPD_BIN: cannot execute"
exit 1
fi
case $1 in
start)
if [ -n "$pid" ]; then
echo "$0: proftpd [PID $pid] already running"
exit
fi
if [ -r $FTPD_CONF ]; then
echo "Starting proftpd..."
$FTPD_BIN -c $FTPD_CONF
ps -ef | pgrep -x proftpd | awk 'NR>1{exit};1' > $PIDFILE
else
echo "$0: cannot start proftpd -- $FTPD_CONF missing"
fi
;;
stop)
if [ -n "$pid" ]; then
echo "Stopping proftpd..."
rm $PIDFILE
kill -TERM $pid
else
echo "$0: proftpd not running"
exit 1
fi
;;
restart)
if [ -n "$pid" ]; then
echo "Rehashing proftpd configuration"
kill -HUP $pid
else
echo "$0: proftpd not running"
exit 1
fi
;;
*)
echo "usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0
#!/bin/sh # proftpd-toggle if pgrep -x proftpd > /dev/null; then sudo /etc/init.d/proftpd stop > /dev/null else echo Started sudo /etc/init.d/proftpd start fi exit 0
| The Following User Says Thank You to DaSilva For This Useful Post: | ||

| The Following User Says Thank You to DaSilva For This Useful Post: | ||