Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No link/reference in /var/service was created while installation from repo with xbps #101

Closed
lovermann opened this issue Apr 20, 2020 · 1 comment

Comments

Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
@lovermann
Copy link

@lovermann lovermann commented Apr 20, 2020

Problem

I think, it's not a bug, but a incorrect installation of program from package.
I'm installing privoxy proxy server using xbps:
sudo xbps-install privoxy

Installation went without problems, but then, when trying to start privoxy as a service:
sudo sv up privoxy

error unable to change to service directory: file does not exist is evoked.

Solution

As I understood, runit is looking for a service in /var/service, but xbps didn't make link in this service directory while installation, so user has to make symlink manually:
ln -s /etc/sv/privoxy /var/service

solution was found here:
How to install Privoxy in Trident Linux

My Trident:

$ lsb_release -a
LSB Version:    1.0
Distributor ID: VoidLinux
Description:    Void Linux
Release:        rolling
Codename:       void
$ uname -a
Linux Trident 5.4.33_2 #1 SMP PREEMPT Sat Apr 18 14:32:17 UTC 2020 x86_64 GNU/Linux
$ cat /proc/version
Linux version 5.4.33_2 (void-buildslave@a-hel-fi) (gcc version 9.3.0 (GCC)) #1 SMP PREEMPT Sat Apr 18 1
@lovermann lovermann changed the title Privoxy installation: No link/reference in /var/service was made while installation from repo with xbps Apr 20, 2020
@lovermann lovermann changed the title No link/reference in /var/service was made while installation from repo with xbps No link/reference in /var/service was created while installation from repo with xbps Apr 20, 2020
@beanpole135
Copy link
Member

@beanpole135 beanpole135 commented Apr 20, 2020

This process you listed is standard for runit services.

  1. The package always installs the service file(s) into /etc/sv/
  2. You need to enable the service in runit by running: sudo ln -s /etc/sv/[service] /var/service

That will both register it for starting at bootup, but also turn it on right then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment