[Bug 38022] Re: run-parts doesn't run script with sh extension

rychu 38022 at bugs.launchpad.net
Sun Jul 22 16:17:15 UTC 2018


I completely agree with @dregad that it would help a lot if there is any information about skipping a script because of a dot. I lost plenty of time troubleshooting smartmontools exec command because of that.
IMO statement "If neither the --lsbsysinit option nor the --regex option is given then the names must consist entirely of upper and lower case letters, digits, underscores, and hyphens." isn't enough, on man page. I read it twice and it didn't bring my attention and help me understand where my issue is. It should be explicitly written that scripts with dots are skipped.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to anacron in Ubuntu.
https://bugs.launchpad.net/bugs/38022

Title:
  run-parts doesn't run script with sh extension

Status in anacron package in Ubuntu:
  Triaged
Status in cron package in Ubuntu:
  Won't Fix
Status in debianutils package in Ubuntu:
  Fix Released
Status in cron package in Debian:
  Fix Released
Status in debianutils package in Debian:
  Fix Released

Bug description:
  With default cron configuration you can only place a shell script to
  /etc/cron.* directory and it is executed by run-parts via cron at the
  right time. But if the script has "sh" extension (e.g. script.sh) it
  is not executed without any warning even if it has correct execute
  rights (e.g. 755). The same will NOT happen if you place only symlink
  to the script in this directory with the same name.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/anacron/+bug/38022/+subscriptions



More information about the foundations-bugs mailing list