Skip to main content
Topic: How to install postgresql on Runit ? (Read 1265 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to install postgresql on Runit ?

Hello i am trying to installl postgresql on artix runit. I have some issues because i cant go further.
I did:
Code: [Select]
 sudo pacman -Syu
then
Code: [Select]
 sudo pacman -S postgresql
and
Code: [Select]
sudo pacman -S postgresql-runit 

Now i am doing:
Code: [Select]
 ln -s /etc/sv/postgresql /var/postgresql/ 
But then nothing happens. How can i go further ?

Thanks in advance...

Re: How to install postgresql on Runit ?

Reply #1
It could be postgresql needs to run some commands before starting daemon first time (like initialize database on disk)
ARMtix

Re: How to install postgresql on Runit ?

Reply #2

Now i am doing:
Code: [Select]
 ln -s /etc/sv/postgresql /var/postgresql/ 
But then nothing happens. How can i go further ?

Thanks in advance...
It doesn't get linked to /var/postgresql but /var/service
ln -sf /etc/sv/postgresql /var/service

Since you linked it to /var/postgresql may need to remove that dir and reinstall postgresql

Re: How to install postgresql on Runit ?

Reply #3
It doesn't get linked to /var/postgresql but /var/service
ln -sf /etc/sv/postgresql /var/service

Since you linked it to /var/postgresql may need to remove that dir and reinstall postgresql

Should the link to activate the service not be:
ln -s /etc/runit/sv/postgresql /run/runit/service

I think Void linux uses /etc/sv and /var/serivce, but Artix uses /etc/runit/sv and /run/runit/service

 

Re: How to install postgresql on Runit ?

Reply #4
Should the link to activate the service not be:
ln -s /etc/runit/sv/postgresql /run/runit/service

I think Void linux uses /etc/sv and /var/serivce, but Artix uses /etc/runit/sv and /run/runit/service

yes, for Artix ln -s /etc/runit/sv/postgresql /run/runit/service is the correct procedure