summaryrefslogtreecommitdiffstats
path: root/source/ap/at/rc.atd
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/at/rc.atd')
-rw-r--r--source/ap/at/rc.atd4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/ap/at/rc.atd b/source/ap/at/rc.atd
index fdc42d70b..d91990897 100644
--- a/source/ap/at/rc.atd
+++ b/source/ap/at/rc.atd
@@ -7,7 +7,7 @@ if [ -r /etc/default/atd ]; then
fi
start_atd() {
- if ! /usr/bin/pgrep --ns $$ --exact atd 1> /dev/null 2> /dev/null ; then
+ if ! /usr/bin/pgrep --ns $$ --euid daemon -f "^/usr/sbin/atd" 1> /dev/null 2> /dev/null ; then
echo "Starting atd: /usr/sbin/atd $ATD_OPTS"
/usr/sbin/atd $ATD_OPTS
fi
@@ -15,7 +15,7 @@ start_atd() {
stop_atd() {
echo "Stopping atd."
- /usr/bin/pkill --ns $$ --exact atd 2> /dev/null
+ /usr/bin/pkill --ns $$ --euid daemon -f "^/usr/sbin/atd" 2> /dev/null
}
restart_atd() {