dash inability - cron starts binary with /bin/sh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dash (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
-- Problem Description --
CRON uses shell to start a binary executable defined in crontab, which is a waste of the resources for the extra shell process hanging in the system. It's supposed to run it directly with exec system call.
*** Here are some command outputs to see the extra process(12327) and relevant information: ***
# ps -ef | grep -e CRON -e PMLnx
root 12326 771 0 13:59 ? 00:00:00 CRON
root 12327 12326 0 13:59 ? 00:00:00 /bin/sh -c /var/perf/
root 12328 12327 0 13:59 ? 00:00:00 /var/perf/
# crontab -l
59 * * * * /var/perf/
# file /var/perf/
/var/perf/
# uname -a
Linux ubuntu 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:09:21 UTC 2014 ppc64le ppc64le ppc64le GNU/Linux
# dpkg -l cron
Name Version Architecture Description
+++-===
ii cron 3.0pl1-124ubuntu2 ppc64el process scheduling daemon
*** Expect cron to directly execute a binary like this ***
# ps -ef | grep -e CRON -e PMLnx
root 2293 2223 0 09:59 ? 00:00:00 /usr/sbin/CRON -n
root 2294 2293 0 09:59 ? 00:00:00 /var/perf/
# uname -a
Linux hulala 3.12.15-3-default #1 SMP Wed Apr 2 17:08:55 UTC 2014 (69c2ea8) ppc64le ppc64le ppc64le GNU/Linux
# cat /etc/SuSE-release
SUSE Linux Enterprise Server 12 (ppc64le)
VERSION = 12
PATCHLEVEL = 0
tags: | added: architecture-ppc64le bugnameltc-112970 severity-normal |
affects: | ubuntu → cron (Ubuntu) |
tags: |
added: severity-medium targetmilestone-inin1410 removed: severity-normal |
Changed in cron (Ubuntu): | |
status: | Invalid → New |
summary: |
- cron starts binary with /bin/sh + dash inability - cron start binary with /bin/sh |
summary: |
- dash inability - cron start binary with /bin/sh + dash inability - cron starts binary with /bin/sh |
tags: |
added: targetmilestone-inin--- removed: targetmilestone-inin1410 |
Changed in dash (Ubuntu): | |
assignee: | nobody → Taco Screen team (taco-screen-team) |
tags: |
added: targetmilestone-inin1604 removed: targetmilestone-inin--- |
Changed in dash (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
This is mandated by POSIX, see http:// pubs.opengroup. org/onlinepubs/ 9699919799/ utilities/ crontab. html