diff options
author | Alex Suykov <alex.suykov@gmail.com> | 2015-05-23 13:06:15 +0300 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-07-14 11:56:21 +0200 |
commit | 727c23cf0531c704f6e66f90dfe2e3efd2e2be93 (patch) | |
tree | 9558dc4a320effdbcce8331e3c8faba280299e79 | |
parent | b39faff8c5d425fe5f9fa64baf4b9ceb77b432f0 (diff) | |
download | buildroot-727c23cf0531c704f6e66f90dfe2e3efd2e2be93.tar.gz buildroot-727c23cf0531c704f6e66f90dfe2e3efd2e2be93.zip |
proftpd: systemd support
[Thomas: change to use a relative symlink, and fix a minor typo in the
service file in the service description.]
Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/proftpd/proftpd.mk | 8 | ||||
-rw-r--r-- | package/proftpd/proftpd.service | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk index 023b4ddc9f..dec243d456 100644 --- a/package/proftpd/proftpd.mk +++ b/package/proftpd/proftpd.mk @@ -55,4 +55,12 @@ define PROFTPD_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 package/proftpd/S50proftpd $(TARGET_DIR)/etc/init.d/S50proftpd endef +define PROFTPD_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 644 package/proftpd/proftpd.service \ + $(TARGET_DIR)/usr/lib/systemd/system/proftpd.service + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + ln -sf ../../../../usr/lib/systemd/system/proftpd.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/proftpd.service +endef + $(eval $(autotools-package)) diff --git a/package/proftpd/proftpd.service b/package/proftpd/proftpd.service new file mode 100644 index 0000000000..1c730e5161 --- /dev/null +++ b/package/proftpd/proftpd.service @@ -0,0 +1,10 @@ +[Unit] +Description=FTP server +After=syslog.target network.target + +[Service] +ExecStart=/usr/sbin/proftpd -n -q +Restart=always + +[Install] +WantedBy=multi-user.target |