changeset 24:7d599c9b7d65

changes for rhel7 systemd and /var/run on tmpfs
author Carl Byington <carl@five-ten-sg.com>
date Mon, 06 Feb 2017 11:32:18 -0800
parents 37793d4c90a0
children a2d60f43590b
files sm-archive.service.rc sm-archive.spec.in
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/sm-archive.service.rc	Mon Feb 06 10:45:07 2017 -0800
+++ b/sm-archive.service.rc	Mon Feb 06 11:32:18 2017 -0800
@@ -7,7 +7,7 @@
 Before = sendmail.service
 
 [Service]
-Type = simple
+Type = forking
 UMask = 0022
 User = sm-archive
 WorkingDirectory = SYSCONFDIR/sm-archive
--- a/sm-archive.spec.in	Mon Feb 06 10:45:07 2017 -0800
+++ b/sm-archive.spec.in	Mon Feb 06 11:32:18 2017 -0800
@@ -76,10 +76,10 @@
     /bin/systemctl daemon-reload &>/dev/null || :
 %else
     /sbin/chkconfig --add %{name}
+%endif
     echo Remember to edit %{_sysconfdir}/%{name}/%{name}.conf and add the following line to your sendmail.mc:
     echo "INPUT_MAIL_FILTER(\`sm-archive', \`S=local:/var/run/sm-archive/sm-archive.sock, F=T, T=C:30s;S:5m;R:5m;E:5m')"
     echo
-%endif
 fi
 
 
@@ -93,7 +93,6 @@
     /sbin/service %{name} stop || :
     /sbin/chkconfig --del %{name}
 %endif
-userdel %{name} || :
 fi