View previous topic :: View next topic |
Author |
Message |
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 513
|
Posted: Mon Apr 13, 2020 9:47 am Post subject: sevizio carshed |
|
|
Ho fatto un init script per avviare un programma
l'init script funziona dopo l'avvio con stop, start e restart
ma ggiunto al runvel di default crasha, e non riesco a trovarne il motivo, abilitando il log trovo solo
Code: | * Starting spotifyd ...
[ ok ]
|
l'init script é questo
Code: | #!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
description="Spotifyd streams music just like the official client"
logfile="/var/log/spotifyd.log"
command="/usr/bin/spotifyd"
command_args="--no-daemon"
start_stop_daemon_args="--nicelevel -10 --stderr ${logfile}"
command_background=yes
pidfile=/run/spotifyd.pid
#need net
depend() {
use alsasound
after bootmisc
}
stop() {
ebegin "Stopping Spotifyd"
start-stop-daemon --stop --quiet \
--exec /usr/bin/spotifyd
eend $?
}
|
Code: | unlevel: default
dhcpcd [ started ]
netmount [ started ]
alsasound [ started ]
chronyd [ started ]
mpd [ started ]
networkaudiod [ started ]
rpi4-eeprom-updater [ started ]
spotifyd [ crashed ]
sshd [ started ]
upmpdcli [ started ]
web |
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31449 Location: here
|
Posted: Mon Apr 13, 2020 11:06 am Post subject: |
|
|
In /etc/rc.conf prova ad abilitare
Code: | # Through rc_log_path you can specify a custom log file.
# The default value is: /var/log/rc.log
#rc_log_path="/var/log/rc.log"
|
e vedi se in questo log ci sia qualcosa di utile _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 513
|
Posted: Mon Apr 13, 2020 11:36 am Post subject: |
|
|
fedeliallalinea wrote: | In /etc/rc.conf prova ad abilitare
Code: | # Through rc_log_path you can specify a custom log file.
# The default value is: /var/log/rc.log
#rc_log_path="/var/log/rc.log"
|
e vedi se in questo log ci sia qualcosa di utile |
mhhh, ho attivato anche verbose, ma niente di particolare
Code: | * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/spotifyd start
* Starting spotifyd ...
* start-stop-daemon: fopen `/run/spotifyd.pid': No such file or directory
* Detaching to start `/usr/bin/spotifyd' ...
[ ok ]
* Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/sshd start
* Starting sshd ...
* start-stop-daemon: fopen `/run/sshd.pid': No such file or directory
* Detaching to start `/usr/sbin/sshd' ...
[ ok ] |
é come se richiedesse il terminale... |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 513
|
Posted: Mon Apr 13, 2020 3:20 pm Post subject: |
|
|
non va in crash se la rete é impostata con ip statico....
non esiste una funzione tipo waitIP? |
|
Back to top |
|
|
|