I'm in the process of installing postgresql onto a second server
Previously I installed postgresql and then used the supplied script
./contrib/start-scripts/linux
Placed into the correct dir
# cp ./contrib/start-scripts/linux /etc/rc.d/init.d/postgresql92
# chmod 755 /etc/rc.d/init.d/postgresql92
Which I could then execute as expected with
# service postgresql92 start
However the new machine is using Systemd and it looks like there is a completely different way to do this
I don't want to hack at this and ruin something so I was wondering if anyone out there could point me in the right direction of how to achieve the same result
/usr/lib/systemd/system/postgresql.service
. The start-scripts provided by postgresql seem to only coverSysV
. – Emeric Aug 06 '15 at 07:46rpm
-based distribution. However, if you install it via eitherdnf
oryum
, you will end up retrieving the server RPM which contains/usr/lib/systemd/system/postgresql-9.X.service
. – Emeric Aug 06 '15 at 08:11.service
files in the path you mentioned... you can usesystemctl enable postgresql-9.x
andsystemctl start postgresql-9.X
... is n't it working in your systemd setup? – Aug 06 '15 at 10:50