Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %pre -n ntpdate
- /usr/sbin/groupadd -g 38 ntp 2> /dev/null || :
- /usr/sbin/useradd -u 38 -g 38 -s /sbin/nologin -M -r -d %{_sysconfdir}/ntp ntp 2>/dev/null || :
- %post
- /sbin/chkconfig --add ntpd
- :
- %post -n ntpdate
- /sbin/chkconfig --add ntpdate
- :
- %preun
- if [ "$1" -eq 0 ]; then
- /sbin/service ntpd stop &> /dev/null
- /sbin/chkconfig --del ntpd
- fi
- :
- %preun -n ntpdate
- if [ "$1" -eq 0 ]; then
- /sbin/service ntpdate stop &> /dev/null
- /sbin/chkconfig --del ntpdate
- fi
- :
- %postun
- if [ "$1" -ge 1 ]; then
- /sbin/service ntpd condrestart &> /dev/null
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement