Comments in scriptlets.
This commit is contained in:
parent
1103def667
commit
2525e87ca9
@ -140,6 +140,7 @@ mkdir -pm755 $RPM_BUILD_ROOT%{_initrddir}
|
|||||||
install -m 755 cronie.init $RPM_BUILD_ROOT%{_initrddir}/crond
|
install -m 755 cronie.init $RPM_BUILD_ROOT%{_initrddir}/crond
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
# run after an installation
|
||||||
if [ $1 -eq 1 ] ; then
|
if [ $1 -eq 1 ] ; then
|
||||||
# Initial installation
|
# Initial installation
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
@ -152,12 +153,14 @@ fi
|
|||||||
[ -e /var/spool/anacron/cron.monthly ] || touch /var/spool/anacron/cron.monthly
|
[ -e /var/spool/anacron/cron.monthly ] || touch /var/spool/anacron/cron.monthly
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
# run before a package is removed
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
/bin/systemctl --no-reload disable crond.service >/dev/null 2>&1 || :
|
/bin/systemctl --no-reload disable crond.service >/dev/null 2>&1 || :
|
||||||
/bin/systemctl stop crond.service > /dev/null 2>&1 || :
|
/bin/systemctl stop crond.service > /dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
# run after a package is removed
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
/bin/systemctl try-restart crond.service >/dev/null 2>&1 || :
|
/bin/systemctl try-restart crond.service >/dev/null 2>&1 || :
|
||||||
|
Loading…
Reference in New Issue
Block a user