replaced template file vsftpd@.service by unit file
This commit is contained in:
parent
09c09a59c9
commit
ce6a54f810
10
vsftpd.service
Normal file
10
vsftpd.service
Normal 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
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user