Skip to content

Commit

Permalink
Merge pull request #506 from pghmcfc/systemd-simple
Browse files Browse the repository at this point in the history
Switch to Type = simple and add configuration test
  • Loading branch information
Castaglia committed May 11, 2017
2 parents 7859379 + 48012e5 commit 6cc96b5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions contrib/dist/rpm/proftpd.service
Expand Up @@ -3,14 +3,13 @@ Description = ProFTPD FTP Server
After = network.target nss-lookup.target local-fs.target remote-fs.target

[Service]
Type = forking
PIDFile = /run/proftpd/proftpd.pid
Type = simple
Environment = PROFTPD_OPTIONS=
EnvironmentFile = -/etc/sysconfig/proftpd
ExecStart = /usr/sbin/proftpd $PROFTPD_OPTIONS
ExecStartPost = /usr/bin/touch /var/lock/subsys/proftpd
ExecStopPost = /bin/rm -f /var/lock/subsys/proftpd
ExecStartPre = /usr/sbin/proftpd --configtest
ExecStart = /usr/sbin/proftpd --nodaemon $PROFTPD_OPTIONS
ExecReload = /bin/kill -HUP $MAINPID
PIDFile = /run/proftpd/proftpd.pid

[Install]
WantedBy = multi-user.target

0 comments on commit 6cc96b5

Please sign in to comment.