comparison sm-archive.spec.in @ 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 9298f8b00db2
comparison
equal deleted inserted replaced
23:37793d4c90a0 24:7d599c9b7d65
74 # initial install 74 # initial install
75 %if "%{?dist}" == ".el7" 75 %if "%{?dist}" == ".el7"
76 /bin/systemctl daemon-reload &>/dev/null || : 76 /bin/systemctl daemon-reload &>/dev/null || :
77 %else 77 %else
78 /sbin/chkconfig --add %{name} 78 /sbin/chkconfig --add %{name}
79 %endif
79 echo Remember to edit %{_sysconfdir}/%{name}/%{name}.conf and add the following line to your sendmail.mc: 80 echo Remember to edit %{_sysconfdir}/%{name}/%{name}.conf and add the following line to your sendmail.mc:
80 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')" 81 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')"
81 echo 82 echo
82 %endif
83 fi 83 fi
84 84
85 85
86 %preun 86 %preun
87 if [ $1 = 0 ]; then 87 if [ $1 = 0 ]; then
91 /bin/systemctl stop %{name}.service &>/dev/null || : 91 /bin/systemctl stop %{name}.service &>/dev/null || :
92 %else 92 %else
93 /sbin/service %{name} stop || : 93 /sbin/service %{name} stop || :
94 /sbin/chkconfig --del %{name} 94 /sbin/chkconfig --del %{name}
95 %endif 95 %endif
96 userdel %{name} || :
97 fi 96 fi
98 97
99 98
100 %postun 99 %postun
101 if [ $1 -ge 1 ]; then 100 if [ $1 -ge 1 ]; then