Artix Linux Forum

Artix Linux => Package management => Topic started by: rhtoras on 08 November 2020, 22:48:55

Title: How to install postgresql on Runit ?
Post by: rhtoras on 08 November 2020, 22:48:55
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...
Title: Re: How to install postgresql on Runit ?
Post by: phoenix_king_rus on 09 November 2020, 07:56:58
It could be postgresql needs to run some commands before starting daemon first time (like initialize database on disk)
Title: Re: How to install postgresql on Runit ?
Post by: ndowens on 09 November 2020, 13:59:10

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
Title: Re: How to install postgresql on Runit ?
Post by: rogervs on 22 January 2021, 17:28:32
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
Title: Re: How to install postgresql on Runit ?
Post by: linuxer on 22 January 2021, 17:52:05
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