You are not logged in.

#1 2012-10-17 22:00:09

nomorewindows
Member
Registered: 2010-04-03
Posts: 2,947

No pure-ftpd.service file [Solved]

Pure ftpd is an AUR package, but no pure-ftpd.service file can I find.  It hasn't been updated for awhile since being pulled out of the repos.
Seems that some of the other distros might already have one.
Anyone else use pure ftpd?
There is a proftpd.service file it appears laying around (if I was using it).

Contents of /etc/rc.d/pure-ftpd:

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

PIDFILE="/var/run/pure-ftpd.pid"
case "$1" in
  start)
    stat_busy "Starting Pure-FTPd"
    [ ! -f $PIDFILE ] && /usr/sbin/pure-config.pl /etc/pure-ftpd.conf &> /dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
      add_daemon pure-ftpd
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping Pure-FTPd"
    # Just kill the master server, preserve existing connections.
    #
    [ -f $PIDFILE ] && kill `cat $PIDFILE` &> /dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
      rm_daemon pure-ftpd
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"  
esac

Last edited by nomorewindows (2012-10-17 22:39:19)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#2 2012-10-17 22:24:10

elp
Member
Registered: 2007-04-10
Posts: 27

Re: No pure-ftpd.service file [Solved]

Here is my pure-ftpd.service :

[Unit]
Description=Pure-FTPd FTP server
After=syslog.target network.target

[Service]
Type=forking
PIDFile=/var/run/pure-ftpd.pid
ExecStart=/usr/sbin/pure-config.pl /etc/pure-ftpd.conf --daemonize

[Install]
WantedBy=multi-user.target

Offline

#3 2012-10-17 22:38:56

nomorewindows
Member
Registered: 2010-04-03
Posts: 2,947

Re: No pure-ftpd.service file [Solved]

Looks like it'll do.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#4 2012-12-18 16:54:42

nomorewindows
Member
Registered: 2010-04-03
Posts: 2,947

Re: No pure-ftpd.service file [Solved]

Recent upgrade to pure-ftpd in AUR now includes pure-ftpd.service file.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

Board footer

Powered by FluxBB