postgresql service is working but showing status failed

From: devangn <devang(dot)nathwani31589(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: postgresql service is working but showing status failed
Date: 2016-10-04 06:33:03
Message-ID: 1475562783522-5924295.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Everything looks and works as it should, just i am not getting the status
opensips service as active (running) instead i am getting active (exited),
what am i missing here?
# netstat -pan|grep 5432
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN
589/postgres

# /etc/init.d/postgresql status
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled)
Active: active (exited) since Thu 2013-11-14 22:14:42 WAST; 2 years 10
months ago
Main PID: 606 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/postgresql.service

Nov 14 22:14:42 db01 systemd[1]: Started PostgreSQL RDBMS.

--> below is the content of file /lib/systemd/system/postgresql.service
# 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
#ExecStartPre=/usr/bin
ExecStart= /bin/true
ExecReload=/bin/true
ExecStop= /bin/true
RemainAfterExit=on

[Install]
WantedBy=multi-user.target

--
View this message in context: http://postgresql.nabble.com/postgresql-service-is-working-but-showing-status-failed-tp5924295.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

Browse pgsql-general by date

  From Date Subject
Next Message Benedikt Grundmann 2016-10-04 07:17:07 Re: Problems with pg_upgrade after change of unix user running db.
Previous Message David G. Johnston 2016-10-03 22:15:58 Make psql print number values right-aligned with locale group separator?