mirror of
git://slackware.nl/current.git
synced 2024-12-31 10:28:29 +01:00
14f2469b12
patches/packages/dcron-4.5-x86_64-12_slack15.0.txz: Rebuilt. This is a bugfix release. run-parts: skip *.orig files. Thanks to metaed. patches/packages/mozilla-thunderbird-115.8.0-x86_64-1_slack15.0.txz: Upgraded. This release contains security fixes and improvements. For more information, see: https://www.mozilla.org/en-US/thunderbird/115.8.0/releasenotes/ https://www.mozilla.org/en-US/security/advisories/mfsa2024-07/ https://www.cve.org/CVERecord?id=CVE-2024-1546 https://www.cve.org/CVERecord?id=CVE-2024-1547 https://www.cve.org/CVERecord?id=CVE-2024-1548 https://www.cve.org/CVERecord?id=CVE-2024-1549 https://www.cve.org/CVERecord?id=CVE-2024-1550 https://www.cve.org/CVERecord?id=CVE-2024-1551 https://www.cve.org/CVERecord?id=CVE-2024-1552 https://www.cve.org/CVERecord?id=CVE-2024-1553 (* Security fix *)
40 lines
731 B
Bash
40 lines
731 B
Bash
#!/bin/sh
|
|
# /etc/rc.d/rc.crond - start/stop the cron daemon
|
|
|
|
# To change the default options, edit /etc/default/crond.
|
|
if [ -r /etc/default/crond ]; then
|
|
. /etc/default/crond
|
|
fi
|
|
|
|
start_crond() {
|
|
if ! /usr/bin/pgrep --ns $$ --euid root -f "^/usr/sbin/crond" 1> /dev/null 2> /dev/null ; then
|
|
echo "Starting crond: /usr/sbin/crond $CROND_OPTS"
|
|
mkdir -p /run/cron
|
|
/usr/sbin/crond $CROND_OPTS
|
|
fi
|
|
}
|
|
|
|
stop_crond() {
|
|
echo "Stopping crond."
|
|
/usr/bin/pkill --ns $$ --euid root -f "^/usr/sbin/crond" 2> /dev/null
|
|
}
|
|
|
|
restart_crond() {
|
|
stop_crond
|
|
sleep 1
|
|
start_crond
|
|
}
|
|
|
|
case "$1" in
|
|
'start')
|
|
start_crond
|
|
;;
|
|
'stop')
|
|
stop_crond
|
|
;;
|
|
'restart')
|
|
restart_crond
|
|
;;
|
|
*)
|
|
echo "usage $0 start|stop|restart"
|
|
esac
|