generic-poky/meta/classes
Ross Burton f6ae87e838 systemd.bbclass: restart service in postinst, not start
When upgrading packages it's possible that the service is already running
because opkg doesn't actually execute the prerm hooks on upgrades, which is
where the service should be stopped.

Handle this case by restarting in postinst instead of starting.  If the service
isn't already running then this doesn't make a difference, but if it is running
then the service will be restarted.

[ YOCTO #4213 ]

(From OE-Core rev: 319ef0df4ae7ed0372eff90e11244123eccb023c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-09 18:09:14 +01:00
..
allarch.bbclass allarch: Allow class to be included but overridden 2012-11-26 10:01:23 +00:00
archive-configured-source.bbclass archiver: fix srpm archiving build errors 2013-04-03 17:01:13 +01:00
archive-original-source.bbclass archiver: fix srpm archiving build errors 2013-04-03 17:01:13 +01:00
archive-patched-source.bbclass archiver: fix srpm archiving build errors 2013-04-03 17:01:13 +01:00
archiver.bbclass archiver: fix srpm archiving build errors 2013-04-03 17:01:13 +01:00
autotools.bbclass autotools.bbclass: add EXTRACONFFUNCS variable 2013-02-01 15:54:30 +00:00
autotools_stage.bbclass autotools: deprecate autotools_stage class 2010-04-27 17:11:28 +01:00
base.bbclass base.bbclass: Fix matching of MACHINEOVERRIDES in COMPATIBLE_MACHINE 2013-04-09 13:19:43 +01:00
bin_package.bbclass bin_package.bbclass: binary package recipe class 2012-09-10 13:01:46 +01:00
binconfig.bbclass binconfig: Handle the case where ${B} != ${S} 2013-03-18 13:18:24 +00:00
blacklist.bbclass blacklist.bbclass: Refactor, use PNBLACKLIST[pn] 2012-05-11 17:50:49 +01:00
boot-directdisk.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
bootimg.bbclass bootimg: Use FAT 32 for images larger than 512MB 2012-12-13 15:18:46 +00:00
bugzilla.bbclass meta/classes: Various python whitespace fixes 2012-08-21 12:15:30 +01:00
buildhistory.bbclass classes/buildhistory: fix interaction with rm_work 2013-04-09 13:16:52 +01:00
buildstats.bbclass meta/classes: Various python whitespace fixes 2012-08-21 12:15:30 +01:00
ccache.bbclass ccache: Ensure CCACHE_DIR is cleaned by do_clean task 2012-07-10 14:25:38 +01:00
chrpath.bbclass chrpath.bbclass: Normalize rpath only of it doesn't contain ORIGIN variable 2012-12-14 08:53:41 +00:00
cmake.bbclass cmake: reset B from autotools, as this class doesnt like it 2013-02-04 12:41:57 +00:00
cml1.bbclass cml1: set and export TERMINFO, to handle ncurses-native relocation 2012-12-26 11:34:07 +00:00
copyleft_compliance.bbclass copyleft_compliance: force the symlink creation 2013-01-07 14:43:24 +00:00
core-image.bbclass packagegroup-core-tools-debug: split out Eclipse packages 2013-03-23 11:48:52 +00:00
cpan-base.bbclass cpan-base.bbclass: Improve RDEPENDS to be package specific 2013-02-04 16:42:48 +00:00
cpan.bbclass cpan.bbclass: Fix CCFLAGS. 2012-07-17 10:53:56 +01:00
cpan_build.bbclass cpan_build: Fix cmaker Build.PL module builds 2013-01-25 12:42:42 +00:00
cross-canadian.bbclass classes: Drop do_package stamp-extra-info 2012-11-21 16:56:03 +00:00
cross.bbclass classes: Be consistent about sstate-inputdirs/outputdirs ending with '/' 2012-11-14 14:38:28 +00:00
crosssdk.bbclass classes: Drop do_package stamp-extra-info 2012-11-21 16:56:03 +00:00
debian.bbclass package: Create global package file list and use throughout PACKAGEFUNCS 2013-02-01 15:54:02 +00:00
deploy.bbclass bitbake/sstate: Implement a lookup function to speed up setscene processing 2010-10-05 22:26:33 +01:00
devshell.bbclass devshell.bbclass: Allow running devshell and fakeroot together 2013-02-19 08:47:36 -08:00
distrodata.bbclass distrodata.bbclass: added some more git processing 2013-03-22 16:54:37 +00:00
distutils-base.bbclass Cleanup: fix PN == BPN cases 2012-10-02 11:40:50 +01:00
distutils-common-base.bbclass distutils-common-base: Create staticdev pacakge for static libraries 2012-11-21 16:56:00 +00:00
distutils-native-base.bbclass meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True) 2012-03-05 10:22:56 -08:00
distutils.bbclass distutils: Replacing path to native python by path to python in the image to support python packages with console-script setup 2012-12-17 17:24:57 +00:00
externalsrc.bbclass externalsrc.bbclass: Add class for handling external source trees 2012-03-01 15:56:50 +00:00
fontcache.bbclass fontcache.bbclass: use the postinst_intercept script 2013-02-13 16:52:29 +00:00
gconf.bbclass classes: Drop none package specific packaging variable accesses 2013-02-17 22:32:03 +00:00
gettext.bbclass gettext.bbclass: Ensure we don't overwrite other DEPENDS_GETTEXT values 2012-04-22 15:59:56 +01:00
gnome.bbclass classes/[gnome|gnomebase|mime]: enhance gnome related classes 2011-11-10 11:37:11 +00:00
gnomebase.bbclass gnomebase: depend on gnome-common-native 2012-11-02 16:18:31 +00:00
grub-efi.bbclass grub-efi: fix Nothing PROVIDES 'grub-efi-x86_64-native' 2012-08-25 14:47:00 +01:00
gsettings.bbclass gsettings.bbclass: fix whitespace 2012-09-05 22:25:23 +01:00
gtk-doc.bbclass gtk-doc: Fix B verses S issues 2013-03-05 17:13:51 +00:00
gtk-icon-cache.bbclass remove gtk-update-icon-cache-native virtuals 2013-04-02 18:11:06 +01:00
gtk-immodules-cache.bbclass classes: Drop none package specific packaging variable accesses 2013-02-17 22:32:03 +00:00
gzipnative.bbclass base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues 2012-07-26 14:56:20 +01:00
icecc.bbclass icecc: improve interaction with sstate 2013-03-15 01:53:05 +00:00
image-empty.bbclass classes/image*: Revamp creation of live images 2011-07-27 12:02:46 +01:00
image-live.bbclass image classes: use PN for depends, not IMAGE_BASE_NAME 2012-11-24 15:12:28 +00:00
image-mklibs.bbclass image-mklibs: pass correct libdir to mklibs 2012-08-07 12:56:34 +01:00
image-prelink.bbclass classes: Remove various bashisms 2011-11-10 11:51:18 +00:00
image-swab.bbclass classes/image-swab: remove zypper-related references 2013-01-24 20:09:00 +00:00
image-vmdk.bbclass image classes: use PN for depends, not IMAGE_BASE_NAME 2012-11-24 15:12:28 +00:00
image.bbclass image.bbclass: fix postinstall intercepts fallback 2013-04-08 16:56:46 +01:00
image_types.bbclass image_types.bbclass: Replace squashfs-lzma with squashfs-xz 2013-03-29 10:40:55 +00:00
image_types_uboot.bbclass image_types_uboot: Update to work after recent image_types changes 2012-02-29 18:25:03 +00:00
imagetest-qemu.bbclass qemuimagetest: collect and print runqemu output 2013-03-26 17:50:09 +00:00
insane.bbclass insane.bbclass: Updated MicroBlaze machine definitions 2013-04-08 16:56:45 +01:00
insserv.bbclass bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the populate_staging task to populate_sysroot 2009-11-13 12:15:42 +00:00
kernel-arch.bbclass kernel-arch.bbclass: don't pass extra args to KERNEL_{CC, LD, AR} 2013-03-05 13:14:52 +00:00
kernel-module-split.bbclass kernel-module-split: append space to RDEPENDS 2013-03-07 11:14:40 +00:00
kernel-yocto.bbclass kernel-yocto: use KBRANCH as default build branch 2013-04-02 18:08:23 +01:00
kernel.bbclass kernel.bbclass: do_sizecheck: update path to build image and do not delete 2013-04-08 22:26:24 +01:00
lib_package.bbclass lib_package.bbclass: Correct comment referring to bin directories. 2013-01-07 11:09:42 +00:00
libc-common.bbclass libc-common: Ensure sysconfdir exists before installing files to it 2012-11-14 14:38:27 +00:00
libc-package.bbclass libc-package: Drop bogus replacement operation 2012-10-18 12:13:12 +01:00
license.bbclass license: fix LICENSE_CREATE_PACKAGE to stay disabled by default 2013-02-01 15:54:30 +00:00
linux-kernel-base.bbclass kernel.bblass: remove get_kernelmajorversion 2011-07-01 23:34:18 +01:00
logging.bbclass logging: add bb* logging mechanisms for bash recipe functions 2011-04-28 10:45:41 +01:00
meta.bbclass Factor ipkg index and conf file creation into package_ipk.bbclass 2007-09-01 22:17:06 +00:00
metadata_scm.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
migrate_localcount.bbclass migrate_localcount.bbclass: use PRAUTOINX instead of PN & PV 2013-01-28 14:49:04 +00:00
mime.bbclass classes: Drop none package specific packaging variable accesses 2013-02-17 22:32:03 +00:00
mirrors.bbclass classes/mirrors: remove bogus gnutls mirror 2012-09-10 13:01:45 +01:00
module-base.bbclass module-base.bbclass: Call make instead of oe_runmake in do_make_scripts 2013-02-01 15:54:31 +00:00
module.bbclass kernel: extract functions for kernel modules to separate bbclass 2013-03-05 13:14:50 +00:00
module_strip.bbclass kernel/package.bbclass: Handle kernel module stripping centrally 2010-08-10 14:47:41 +01:00
multilib.bbclass multilib: Fix an OVERRIDES expansion order issue 2013-02-14 10:06:30 +00:00
multilib_global.bbclass multilib: fix allarch/kernel/module-base multilib issues 2012-12-31 09:43:25 +00:00
multilib_header.bbclass mulitilib_header: Avoid sstate checksum issues for -native recipes 2013-02-14 12:36:08 +00:00
native.bbclass Split do_packagedata task from do_package 2013-01-25 12:42:47 +00:00
nativesdk.bbclass classes: Drop do_package stamp-extra-info 2012-11-21 16:56:03 +00:00
oelint.bbclass classes: Sync with OE - mainly quoting fixes or other minor updates 2006-11-20 15:19:39 +00:00
own-mirrors.bbclass own-mirrors.bbclass: Bring own-mirrors.bbclass from oe commit 0ef914b250df46a41348479446214575668943fb 2011-03-15 01:19:26 +00:00
package.bbclass Add file information to package information window 2013-04-04 14:10:56 +01:00
package_deb.bbclass package_deb.bbclass: fix 'armel' override 2013-04-03 17:01:13 +01:00
package_ipk.bbclass package/populate_sdk: Move functions from package_* to populate_sdk_* 2013-03-23 17:40:27 +00:00
package_rpm.bbclass package/populate_sdk: Move functions from package_* to populate_sdk_* 2013-03-23 17:40:27 +00:00
package_tar.bbclass package_tar: Fix so it actually works 2013-02-17 22:32:04 +00:00
packagedata.bbclass packagedata: Add error message if multiple recipes try to write the same package 2013-01-24 20:09:00 +00:00
packagegroup.bbclass packagegroup: Set ALLOW_EMPTY on a per package basis 2013-03-05 13:14:58 +00:00
packageinfo.bbclass Add file information to package information window 2013-04-04 14:10:56 +01:00
patch.bbclass patch.bbclass: increase security 2012-09-14 17:12:43 +01:00
perlnative.bbclass base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues 2012-07-26 14:56:20 +01:00
pixbufcache.bbclass Add pixbufcache class 2013-02-13 16:52:29 +00:00
pkg_distribute.bbclass meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True) 2012-03-05 10:22:56 -08:00
pkg_metainfo.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
pkgconfig.bbclass pkgconfig: Drop automatic pkgconfig RDEPENDS 2012-10-18 12:13:12 +01:00
populate_sdk.bbclass nativesdk: Switch to using nativesdk as a prefix, not a suffix 2012-09-02 05:52:06 -07:00
populate_sdk_base.bbclass classes/buildhistory: implement history collection for SDKs 2013-03-23 11:41:13 +00:00
populate_sdk_deb.bbclass package/populate_sdk: Move functions from package_* to populate_sdk_* 2013-03-23 17:40:27 +00:00
populate_sdk_ipk.bbclass package/populate_sdk: Move functions from package_* to populate_sdk_* 2013-03-23 17:40:27 +00:00
populate_sdk_rpm.bbclass package/populate_sdk: Move functions from package_* to populate_sdk_* 2013-03-23 17:40:27 +00:00
prexport.bbclass prs: use the PRServer to replace the BB_URI_LOCALCOUNT functionality 2012-12-06 12:31:16 +00:00
primport.bbclass prservice: Added sanity check for prservice connection. 2012-03-08 12:16:29 -08:00
prserv.bbclass prserv: change PRSERV_HOST semantics 2013-01-25 12:42:43 +00:00
ptest.bbclass ptest: Move ptest checks from recipes to ptest.bbclass 2013-03-07 11:14:39 +00:00
python-dir.bbclass python-dir: change PYTHON_BASEVERSION to 2.7 2011-10-31 22:03:22 +00:00
pythonnative.bbclass base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues 2012-07-26 14:56:20 +01:00
qemu.bbclass postinst-intercepts, qemu.bbclass: fix issue on 32 bit hosts 2013-04-05 17:36:34 +01:00
qmake2.bbclass qt4: Enable accessibility and sm option for LSB. 2011-01-20 21:37:01 +00:00
qmake_base.bbclass classes/qmake_base: support linux-gnuspe/linux-uclibcspe TARGET_OS 2012-09-05 17:32:14 +01:00
qt4e.bbclass qt4: Avoid circular dependencies with multilib 2012-10-03 10:02:21 +01:00
qt4x11.bbclass qt4: Avoid circular dependencies with multilib 2012-10-03 10:02:21 +01:00
recipe_sanity.bbclass recipe_sanity: Don't bother checking LICENSE 2012-10-18 12:13:39 +01:00
relocatable.bbclass relocatable.bbclass: split it up, to reuse code 2012-08-02 15:28:39 +01:00
rm_work.bbclass classes/rm_work: rename RM_WORK_WHITELIST to RM_WORK_EXCLUDE 2013-03-26 21:19:51 +00:00
rootfs_deb.bbclass classes/buildhistory: implement history collection for SDKs 2013-03-23 11:41:13 +00:00
rootfs_ipk.bbclass classes/buildhistory: implement history collection for SDKs 2013-03-23 11:41:13 +00:00
rootfs_rpm.bbclass rpm: split out run-postinsts 2013-03-29 10:40:54 +00:00
sanity.bbclass fix march sanity check issue 2013-03-22 17:01:30 +00:00
scons.bbclass classes: scons: add EXTRA_OESCONS 2012-03-26 23:29:44 +01:00
sdl.bbclass classes/sdl: remove Opie-specific desktop file/packaging 2012-02-21 17:00:46 +00:00
setuptools.bbclass distutils/steuptools: Fix files layout and unbreak builds 2012-08-24 17:25:15 +01:00
sip.bbclass sip.bbclass: improve RDEPENDS to add python-sip only for PN 2013-02-04 23:31:02 +00:00
siteconfig.bbclass siteconfig: Clear cache before rebuilding 2012-09-28 15:19:42 +01:00
siteinfo.bbclass siteinfo/insane: More n32 fixups 2013-02-25 05:58:19 -08:00
sstate.bbclass classes/sstate: avoid traceback when no files have been staged 2013-04-03 17:01:13 +01:00
staging.bbclass staging.bbclass: Drop unused/legacy function 2013-02-06 13:13:00 +00:00
syslinux.bbclass syslinux.bbclass: Add a default serial console option and real boot menu support 2013-03-18 21:42:24 +00:00
systemd.bbclass systemd.bbclass: restart service in postinst, not start 2013-04-09 18:09:14 +01:00
task.bbclass Rename task to packagegroup 2012-09-04 12:52:55 +01:00
terminal.bbclass devshell.bbclass: Allow running devshell and fakeroot together 2013-02-19 08:47:36 -08:00
tinderclient.bbclass meta/classes: Various python whitespace fixes 2012-08-21 12:15:30 +01:00
toolchain-scripts.bbclass Add kernel arch variable in SDK environment variable list for supporting build external kernel module using SDK 2013-02-28 23:15:46 +00:00
typecheck.bbclass typecheck.bbclass: update per current variable typing code 2012-05-11 17:50:50 +01:00
update-alternatives.bbclass classes: Drop none package specific packaging variable accesses 2013-02-17 22:32:03 +00:00
update-rc.d.bbclass update-rc.d, systemd: redirect also stderr from type 2013-04-02 18:16:24 +01:00
useradd.bbclass classes: replace virtclass-native(sdk) with class-native(sdk) 2012-11-02 16:18:27 +00:00
utility-tasks.bbclass utility-tasks: Set T to alternate location during do_clean 2012-08-18 16:23:59 +01:00
utils.bbclass bitbake.conf/utils: Drop some OVERRIDES from FILESPATH 2012-12-11 15:58:36 +00:00