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

How to autostart ympd using systemd? #109

Open
taudac opened this issue Nov 24, 2015 · 3 comments
Open

How to autostart ympd using systemd? #109

taudac opened this issue Nov 24, 2015 · 3 comments

Comments

@taudac
Copy link

taudac commented Nov 24, 2015

What I have done:

sudo cp ~/src/ympd/contrib/ympd.service /usr/lib/systemd/system/
sudo systemctl enable ympd.service
sudo systemctl start ympd.service

Starting ympd fails with:

Job for ympd.service failed. See 'systemctl status ympd.service' and 'journalctl -xn' for details.

systemctl status ympd returns:

● ympd.service - ympd server daemon
   Loaded: loaded (/usr/lib/systemd/system/ympd.service; enabled)
   Active: **failed** (Result: resources)

Note: The platform is Raspberry Pi 2 (kernel: rpi-4.3.y)

@3onyc
Copy link

3onyc commented Dec 1, 2015

  1. What distro are you running?
  2. What's the output of journalctl -u ympd.service?

@taudac
Copy link
Author

taudac commented Dec 2, 2015

I am running Raspbian Jessie.

I have fixed the issue in the meantime somehow. I have used the following steps (if I recall correctly):

  1. sudo cp contrib/ympd.service /etc/systemd/system/
  2. sudp cp contrib/ympd.default /etc/default/ympd
  3. ympd has been installed to /usr/local/bin, so, in the file ympd.service, I have changed ExecStart=/usr/bin/ympd to ExecStart=/usr/local/bin/ympd.
  4. To ensure that ympd is started after mpd, I have added mpd.service to the After and Requires options in ympd.service.
  5. sudo systemctl daemon-reload
  6. sudo systemctl enable ympd.service
  7. sudo systemctl start ympd.service

Does that make sense?
Shouldn't make install do something like that?

@dewi-ny-je
Copy link

Works for me too, same steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants