replaced template file vsftpd@.service by unit file

This commit is contained in:
Jiri Skala 2011-11-15 13:56:02 +01:00
parent 09c09a59c9
commit ce6a54f810
2 changed files with 10 additions and 16 deletions

10
vsftpd.service Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=Vsftpd ftp daemon
After=network.target
[Service]
Type=forking
ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
[Install]
WantedBy=multi-user.target

View File

@ -1,16 +0,0 @@
[Unit]
Description=Vsftpd ftp daemon
After=syslog.target network.target
[Service]
# Follow the steps below to set up an additional configuration file:
#
# cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd2.conf
# ln -s /lib/systemd/system/vsftpd@.service /lib/systemd/system/vsftpd@vsftpd2.service
#
Type=oneshot
ExecStart=/usr/sbin/vsftpd /etc/vsftpd/%i.conf
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target