This is because invoke-rc.d uses "systemctl --job-mode=ignore-
dependencies" when starting jobs while booting is not yet finished (see
https://anonscm.debian.org/cgit/collab-
maint/sysvinit.git/commit/?id=38e2b9fca3cb119). So only
postgresql.service itself is started, not its wanted
[email protected].
So this is another effect of bug 1576692 -- it would be nice to avoid
package installation/service configuration during booting the system and
postpone that after boot. This would solve these kinds of issues more
generally.
Keeping this bug open in case someone wants to attempt a workaround in
p-common for this. (In /usr/share/postgresql-common/maintscripts-
functions configure_version()).
** Changed in: postgresql-common (Ubuntu)
Status: Confirmed => Triaged
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to postgresql-common in Ubuntu.
https://bugs.launchpad.net/bugs/1611973
Title:
[email protected] service not started if postgres installed via
cloud-init
Status in postgresql-common package in Ubuntu:
Triaged
Bug description:
If you intsall postgresql via cloud-init user-data, it will not get started.
A work around is provided at
http://dustymabe.com/2015/08/03/installingstarting-systemd-services-using-cloud-init/
This is related to bug 1575572.
To reproduce the behavior:
$ cat ../postgresql.yaml
#cloud-config
packages: [postgresql]
$ launch ubuntu-daily:yakkety y2 "--config=user.user-data=$(cat
postgresql.yaml)"
$ lxc exec y2 /bin/bash
# wait for system boot
# systemctl status [email protected]
● [email protected] - PostgreSQL Cluster 9.5-main
Loaded: loaded (/lib/systemd/system/[email protected]; disabled; vendor
preset: enabled)
Active: inactive (dead)
Related Bugs:
* bug 1575572: apache2 fails to start if installed via cloud config (on
Xenial)
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: postgresql-common 175
ProcVersionSignature: Ubuntu 4.4.0-33.52-generic 4.4.15
Uname: Linux 4.4.0-33-generic x86_64
ApportVersion: 2.20.3-0ubuntu5
Architecture: amd64
Date: Wed Aug 10 21:27:31 2016
PackageArchitecture: all
ProcEnviron:
TERM=screen.xterm-256color
PATH=(custom, no user)
SourcePackage: postgresql-common
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postgresql-common/+bug/1611973/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp