# Only check if jobs are disabled if the currently _running_ version of # Upstart (which may be older than the latest _installed_ version) # supports such a query. # # This check is necessary to handle the scenario when upgrading from a # release without the 'show-config' command (introduced in # Upstart for Ubuntu version 0.9.7) since without this check, all # installed packages with associated Upstart jobs would be considered # disabled. # # Once Upstart can maintain state on re-exec, this change can be # dropped (since the currently running version of Upstart will always # match the latest installed version).
UPSTART_VERSION_RUNNING=$(initctl version|awk '{print $3}'|tr -d ')') if dpkg --compare-versions "$UPSTART_VERSION_RUNNING" ge 0.9.7 then initctl show-config -e '/dev/xconsole' "$JOB"|grep -q '^ start on' || DISABLE$ fi -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/940030 Title: rsyslog stops working after logrotate until restarted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/940030/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs