summaryrefslogtreecommitdiffstats
path: root/source/a/dcron/rc.crond
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/dcron/rc.crond')
-rw-r--r--source/a/dcron/rc.crond4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/a/dcron/rc.crond b/source/a/dcron/rc.crond
index c9c94ec89..d9076b330 100644
--- a/source/a/dcron/rc.crond
+++ b/source/a/dcron/rc.crond
@@ -7,7 +7,7 @@ if [ -r /etc/default/crond ]; then
fi
start_crond() {
- if ! /usr/bin/pgrep --ns $$ --exact crond 1> /dev/null 2> /dev/null ; then
+ 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
@@ -16,7 +16,7 @@ start_crond() {
stop_crond() {
echo "Stopping crond."
- /usr/bin/pkill --ns $$ --exact crond 2> /dev/null
+ /usr/bin/pkill --ns $$ --euid root -f "^/usr/sbin/crond" 2> /dev/null
}
restart_crond() {