Go to file
Ioan-Adrian Ratiu 5e2bb87e66 syslog-ng.inc: fix prerm script & class includes
The order of class includes is very important because it's the order in
which classes are evaluated. Both update-rc.d and update-alternatives
write to the prerm script, so the class order decides the script code
ordering. As they are now, prerm is:

 #!/bin/sh
        update-alternatives --remove  syslog-init /etc/init.d/syslog.syslog-ng
if [ -z "$D" ]; then
        /etc/init.d/syslog stop
fi

This causes errors because when syslog-ng is the only alternative it is
removed and then the script tries to stop it (No such file or directory)
but even if there are other alternatives, the script tries to stop
something other than syslog-ng which was removed.

By reversing the include order, prerm gets generated correctly and it
tries to stop syslog-ng before removing it:

if [ -z "$D" ]; then
        /etc/init.d/syslog stop
fi
update-alternatives --remove  syslog-init /etc/init.d/syslog.syslog-ng

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-05-09 19:05:03 -07:00
contrib contrib: print oldline within single quotes 2016-01-04 14:56:24 +01:00
meta-efl meta-efl: use bb.utils.contains() instead of base_contains() 2016-05-02 14:03:03 -07:00
meta-filesystems Add simple-mtpfs recipe 2016-05-02 14:03:03 -07:00
meta-gnome meta-gnome: use bb.utils.contains() instead of base_contains() 2016-05-02 14:03:04 -07:00
meta-gpe README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-initramfs meta-initramfs: use bb.utils.contains() instead of base_contains() 2016-05-02 14:03:04 -07:00
meta-multimedia meta-multimedia: use bb.utils.contains() instead of base_contains() 2016-05-02 14:03:03 -07:00
meta-networking squid: CVE-2016-3947 2016-05-09 19:05:02 -07:00
meta-oe syslog-ng.inc: fix prerm script & class includes 2016-05-09 19:05:03 -07:00
meta-perl libhtml-parser-perl: update to 3.72 2016-05-02 14:03:01 -07:00
meta-python python-parted: update to version 3.10.7 2016-05-02 14:03:03 -07:00
meta-ruby README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-systemd README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-webserver meta-webserver: use bb.utils.contains() instead of base_contains() 2016-05-02 14:03:03 -07:00
meta-xfce xfce4-weather-plugin: update to 0.8.7 2016-05-02 14:03:04 -07:00
.gitignore gitignore: Ignore Edit backup files, patches, .rej, .orig, .swp 2013-11-24 15:19:27 +01:00
COPYING.MIT add README and license for this layer 2011-02-13 16:47:32 +01:00
README README: add top level readme, update meta-oe one 2011-10-17 09:27:01 +02:00

Collection of layers for the OE-core universe

Please see the respective READMEs in the layer subdirectories