我找不到任何解决办法。
输出journalctl
:
mei 21 11:33:30 tvnr systemd[1]: Starting LSB: minidlna server...
mei 21 11:33:31 tvnr systemd[1]: Started LSB: minidlna server.
输出service minidlna status
:
minidlna.service - LSB: minidlna server
Loaded: loaded (/etc/init.d/minidlna; generated)
Active: active (exited) since Thu 2020-05-21 11:36:26 CEST; 11s ago
Docs: man:systemd-sysv-generator(8)
Process: 4934 ExecStart=/etc/init.d/minidlna start (code=exited, status=0/SUCCESS)
mei 21 11:36:26 tvnr systemd[1]: Starting LSB: minidlna server...
mei 21 11:36:26 tvnr systemd[1]: Started LSB: minidlna server.
输出pgrep minidlna|xargs ps
:
PID TTY STAT TIME COMMAND
1388 ? Ssl 0:00 minidlnad -f /var/snap/minidlna-escoand/19/minidlna.conf -P /var/snap/minidlna-escoand/common/minidlna.pid
我尝试更改/etc:default
并添加 mijn 用户名,但没有任何变化:
# Defaults for minidlna initscript
# sourced by /etc/init.d/minidlna
# installed at /etc/default/minidlna by the maintainer scripts
# These options can be set to modify the behavior of the minidlna init script.
# The options commented out show the default values.
# Start the daemon if set to "yes"
START_DAEMON="yes"
# Path to the configuration file
CONFIGFILE="/etc/minidlna.conf"
# Path to the log file
#LOGFILE="/var/log/minidlna.log"
# User and group the daemon should run as
USER="gerda-johan"
#GROUP="minidlna"
# Additional options that are passed to the daemon
# We pass -r option to do soft non-destructive rebuild on every start-up.
# If your systerm restarts often, you might want to remove this.
DAEMON_OPTS="-r"
我不明白哪里出了问题?
它正在运行并且数据库存在,但我在这里看不到任何东西 :(
也许一点帮助就能产生很大的作用:)
答案1
您为“service minidlna status”提供的输出表明该进程已启动但已退出(请参阅日志中的“Active (exited)”)。
对您来说这可能很明显,但请确保您打算以 USER 身份运行此程序(即 gerda-johan)实际上是 Linux 系统中的有效用户 ID。另请参阅此线程:https://www.reddit.com/r/debian/comments/gha898/minidlna_setup_notes/