使用/ usr / local / bin / mpd代替/ usr / bin / mpd

wil

我想运行安装在/ usr / local / bin中的补丁mpd。通常,它是从以下位置开始的:sudo service mpd start

更改:DAEMON=/usr/bin/mpdDAEMON=/usr/local/bin/mpd在/etc/init.d/mpd没有影响:服务仍然启动的/ usr / bin中/ MPD。

我注意到一个/lib/systemd/system/mpd.service文件,并尝试更改其

ExecStart=/usr/bin/mpd --no-daemon $MPDCONFExecStart=/usr/local/bin/mpd --no-daemon $MPDCONF

但现在mpd服务无法启动。

这是systemctl status mpd的输出

● mpd.service - Music Player Daemon
   Loaded: loaded (/lib/systemd/system/mpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit) since jeu. 2016-04-21 11:04:26 CEST; 2s ago
  Process: 26778 ExecStart=/usr/local/bin/mpd --no-daemon $MPDCONF (code=exited, status=1/FAILURE)
 Main PID: 26778 (code=exited, status=1/FAILURE)

avril 21 11:04:25 lago systemd[1]: Started Music Player Daemon.
avril 21 11:04:26 lago mpd[26778]: cmdline: No configuration file found
avril 21 11:04:26 lago systemd[1]: mpd.service: Main process exited, code=exited, status=1/FAILURE
avril 21 11:04:26 lago systemd[1]: mpd.service: Unit entered failed state.
avril 21 11:04:26 lago systemd[1]: mpd.service: Failed with result 'exit-code'.
avril 21 11:04:26 lago systemd[1]: mpd.service: Start request repeated too quickly.
avril 21 11:04:26 lago systemd[1]: Failed to start Music Player Daemon.
avril 21 11:04:26 lago systemd[1]: mpd.service: Failed with result 'start-limit'.

我检查:sudo /usr/local/bin/mpd --no-daemon /etc/mpd.conf从命令行工作。

我迷失了这种服务配置。我应该修改什么?

wil

事实证明,改变$MPDCONF/etc/mpd.conf解决问题。奇怪的是,这条线与/usr/bin/mpd

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

“ / usr / bin / xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” ;?

$ usr中/ usr / bin和/ usr / local / bin的顺序以及更多

/ usr / bin / python和/ usr / local / bin / python

从〜/ .local / bin / pip而不是/ usr / local / bin / pip运行pip

ssh找不到/ usr / local / bin路径

确保/ usr / local / bin在我的$ PATH中

从/ usr / local / bin / node卸载节点

/ usr / sbin,/ usr / local / sbin和/ usr / local / bin的含义是什么?

/ bin,/ sbin,/ usr / bin,/ usr / sbin,/ usr / local / bin,/ usr / local / sbin之间的差异

什么是/ usr / local / bin?

从/ usr / bin删除git

在/ usr / local / bin之前的Homebrew / usr / bin

brew:/ usr / bin出现在/ usr / local / bin之前

我是否应该将非root用户使用的二进制文件从/ usr / bin /移至/ usr / local / bin /?

/ usr / bin和/ usr / local / bin之间的冲突

在Linux上/ usr / bin与/ usr / local / bin

/ usr / bin / pkexec失败

echo $ PATH结果在/ usr / local / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin:/ bin:/ bin:/ bin:/ bin:/ bin:

/ usr / bin /在Arch上

什么是/ usr / bin / parity?

/ usr / bin和/ usr / local / bin之间的区别

Cygwin安装:缺少/ usr / bin和/ usr / local / sbin目录

键盘配置:/usr/local/bin/setupcon:900:/usr/local/bin/setupcon:/usr/local/bin/ckbcomp:未找到

使用 npm 将文件安装到 /usr/local/bin

无法使用 PHP exec() 执行 /usr/local/bin/program

在 /usr/local/bin 中找不到 gnuplot

/usr/local/bin/symfony: 2: /usr/local/bin/symfony: 语法错误:换行符意外

我如何告訴 bash 使用 /usr/local/bin/python3 而不是 /usr/bin/python3?

无法从 /usr/local/bin 使用 shebang 运行 python 脚本