aboutsummaryrefslogtreecommitdiffstats
path: root/main/opensmtpd/smtpd.initd
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2017-04-24 16:18:20 +0300
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-06-02 08:14:18 +0000
commit01b670e9be5e12e82d52a806d219a65d59073b26 (patch)
tree2779750817b161c2919a12ad0222623b5d1190ed /main/opensmtpd/smtpd.initd
parent7118fdb450b0be5ef77bce409ace4bf302c316b7 (diff)
downloadaports-01b670e9be5e12e82d52a806d219a65d59073b26.tar.bz2
aports-01b670e9be5e12e82d52a806d219a65d59073b26.tar.xz
main/opensmtpd: fix mail spool path, other fixes
/var/mail is used from /usr/include/paths.h if not set, So set --with-path-mbox=/var/spool/mail to fix spoll path from /var/mail to /var/spool/mail. change libexec prefix --libexecdir=/usr/lib. So now full path is /usr/lib/opensmtpd, not /usr/lib/opensmtpd/opensmtpd remove post-install script. There is no need to run 'newaliases' because in default config aliases table use file: driver, not db: driver remove empty /usr/bin directory in init-script explictly set 'name' and 'command' variables to not be dependent on script name.
Diffstat (limited to 'main/opensmtpd/smtpd.initd')
-rw-r--r--main/opensmtpd/smtpd.initd7
1 files changed, 4 insertions, 3 deletions
diff --git a/main/opensmtpd/smtpd.initd b/main/opensmtpd/smtpd.initd
index ad6f05dd45..98881e8523 100644
--- a/main/opensmtpd/smtpd.initd
+++ b/main/opensmtpd/smtpd.initd
@@ -1,10 +1,11 @@
#!/sbin/openrc-run
-name="$RC_SVCNAME"
-command="/usr/sbin/$RC_SVCNAME"
+name="SMTP Server"
+command=/usr/sbin/smtpd
command_args="-F $SMTPD_OPTS"
command_background=yes
-pidfile="/run/$RC_SVCNAME.pid"
+pidfile=/run/$RC_SVCNAME.pid
+required_files=/etc/smtpd/smtpd.conf
depend() {
need net localmount