Bug#755894: systemd does not start postgresql
Erik de Castro Lopo wrote: Installed postgresql 9.3+157 on a system which already had systemd as its init system. When i try to start postgresql: # systemctl start postgresql # systemctl status postgresql postgresql.service - LSB: PostgreSQL RDBMS server Loaded: loaded (/etc/init.d/postgresql) Active: active (exited) since Tue 2014-07-22 10:40:04 EST; 2 days ago This looks like : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731862 That bugs asks for an strace output. That should be attached to this report. Ah this is weird! It seems systemctl doesn't know how do find the status of the postgresql daemon. Turns out the systemd service file for postgresql is complete rubbish: # systemd service for managing all PostgreSQL clusters on the system. This # service is actually a systemd target, but we are using a service since # targets cannot be reloaded. [Unit] Description=PostgreSQL RDBMS [Service] Type=oneshot ExecStart=/bin/true ExecReload=/bin/true RemainAfterExit=on [Install] WantedBy=multi-user.target This is obviously wrong. Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755894: systemd does not start postgresql
Re: Erik de Castro Lopo 2014-08-11 20140811205417.510fba1b4dc7f22595328...@mega-nerd.com It seems systemctl doesn't know how do find the status of the postgresql daemon. Turns out the systemd service file for postgresql is complete rubbish: # systemd service for managing all PostgreSQL clusters on the system. This # service is actually a systemd target, but we are using a service since # targets cannot be reloaded. [Unit] Description=PostgreSQL RDBMS [Service] Type=oneshot ExecStart=/bin/true ExecReload=/bin/true RemainAfterExit=on [Install] WantedBy=multi-user.target This is obviously wrong. You obviously didn't read the comments there. Christoph -- c...@df7cb.de | http://www.df7cb.de/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755894: systemd does not start postgresql
Christoph Berg wrote: Re: Erik de Castro Lopo 2014-08-11 20140811205417.510fba1b4dc7f22595328...@mega-nerd.com It seems systemctl doesn't know how do find the status of the postgresql daemon. Turns out the systemd service file for postgresql is complete rubbish: # systemd service for managing all PostgreSQL clusters on the system. This # service is actually a systemd target, but we are using a service since # targets cannot be reloaded. [Unit] Description=PostgreSQL RDBMS [Service] Type=oneshot ExecStart=/bin/true ExecReload=/bin/true RemainAfterExit=on [Install] WantedBy=multi-user.target This is obviously wrong. You obviously didn't read the comments there. Oh, I read them but they made close to zero sense to me and were vastly different from the postgresql.service files I'd found elsewehere on the 'net, like the one here: https://bbs.archlinux.org/viewtopic.php?pid=1165363#p1165363 Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755894: systemd does not start postgresql
reassign 755894 postgresql-common thanks Am 24.07.2014 12:50, schrieb Erik de Castro Lopo: Package: systemd Version: 208-6 Severity: normal Dear Maintainer, Installed postgresql 9.3+157 on a system which already had systemd as its init system. When i try to start postgresql: # systemctl start postgresql # systemctl status postgresql postgresql.service - LSB: PostgreSQL RDBMS server Loaded: loaded (/etc/init.d/postgresql) Active: active (exited) since Tue 2014-07-22 10:40:04 EST; 2 days ago This looks like : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731862 I'm going to re-assign this to the postgresql-commons package since that is the package shipping the /etc/init.d/postgresql SysV init script. Since postgresql-common also ships a native systemd .service file, this might just be a packaging error. The postgresql-common package does not depend on init-system-helpers, which might suggest that it doesn't properly enable the service upon installation. -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature