diff options
Diffstat (limited to 'source/a/dcron')
-rwxr-xr-x | source/a/dcron/dcron.SlackBuild | 2 | ||||
-rw-r--r-- | source/a/dcron/rc.crond | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/a/dcron/dcron.SlackBuild b/source/a/dcron/dcron.SlackBuild index abd76e219..72fd6a6b4 100755 --- a/source/a/dcron/dcron.SlackBuild +++ b/source/a/dcron/dcron.SlackBuild @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=dcron VERSION=${VERSION:-$(echo dcron-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-7} +BUILD=${BUILD:-8} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then 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() { |