Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Zitat
#!/sbin/runscript
SERVER_NAME="MTP-Streaming-Server"
SERVER_BIN="/usr/local/bin/linux_mtp_streaming_server"
SERVER_OPTS="-i /var/www/beta7"
depend() {
use net
}
start() {
ebegin "Starting $SERVER_NAME"
start-stop-daemon -S -b -x $SERVER_BIN -- $SERVER_OPTS
eend $?
}
stop() {
ebegin "Stopping $SERVER_NAME"
start-stop-daemon -K -x $SERVER_BIN
killall linux_mtp_streaming_server
eend $?
}
Zitat
(none) init.d # ./linux_mtp_streaming_server_script
: No such file or directory
has syntax errors in it; aborting ...
(none) init.d #
Quellcode |
|
1 2 3 4 |
/etc/init.d/linux_mtp_streaming_server_script start /etc/init.d/linux_mtp_streaming_server_script stop start-stop-daemon -S -b -x /usr/local/bin/linux_mtp_streaming_server -- -i /var/www/beta7 start-stop-daemon -K -x /usr/local/bin/linux_mtp_streaming_server |
Zitat
(none) ~ # /etc/init.d/linux_mtp_streaming_server_script start
: No such file or directory
has syntax errors in it; aborting ...
(none) ~ # /etc/init.d/linux_mtp_streaming_server_script stop
: No such file or directory
has syntax errors in it; aborting ...
(none) ~ # start-stop-daemon -S -b -x /usr/local/bin/linux_mtp_streaming_server -- -i /var/www/beta7/
(none) ~ #
Zitat
(none) ~ # ps -ef|grep mtp
root 6519 1 0 20:45 ? 00:00:00 /usr/local/bin/linux_mtp_streaming_server -i /var/www/beta7/
root 6521 6519 0 20:45 ? 00:00:00 /usr/local/bin/linux_mtp_streaming_server -i /var/www/beta7/
root 6522 6519 0 20:45 ? 00:00:00 /usr/local/bin/linux_mtp_streaming_server -i /var/www/beta7/
root 6524 6459 0 20:48 pts/3 00:00:00 grep mtp
(none) ~ #
Quellcode |
|
1 2 3 |
nano -w /etc/init.d/linux_mtp_streaming_server_script ... chmod 755 /etc/init.d/linux_mtp_streaming_server_script |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#!/sbin/runscript SERVER_NAME="MTP-Streaming-Server" SERVER_BIN="/usr/local/bin/linux_mtp_streaming_server" SERVER_OPTS="-i /var/www/beta7" depend() { use net } start() { ebegin "Starting $SERVER_NAME" start-stop-daemon -S -b -x $SERVER_BIN -- $SERVER_OPTS eend $? } stop() { ebegin "Stopping $SERVER_NAME" start-stop-daemon -K -x $SERVER_BIN killall linux_mtp_streaming_server eend $? } |
Zitat
(none) init.d # ./linux_mtp_streaming_server_script
* Caching service dependencies ...
'var/lib/init.d/depcache: line 247: syntax error near unexpected token `{
'var/lib/init.d/depcache: line 247: ` depend() {
* Can't find service 'localmount' needed by 'gpm'; continuing...
* Can't find service 'checkroot' needed by 'hostname'; continuing...
* Can't find service 'modules' needed by 'hotplug'; continuing...
* Can't find service 'localmount' needed by 'keymaps'; continuing... [ ok ]
: No such file or directory
has syntax errors in it; aborting ...
(none) init.d #
Zitat
(none) ~ # rc-update -s -v
apache2 | default
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
consolefont | boot
crypto-loop |
cupsd |
gpm |
hdparm |
hostname | boot
hotplug |
keymaps | boot
linux_mtp_streaming | default
local | default nonetwork
localmount | boot
modules | boot
mysql | default
net.eth0 | default
net.lo | boot
net.wlan0 | default
netmount | default
nscd |
numlock |
rmnologin | boot
rsyncd |
samba | default
slapd |
slurpd |
sshd | default
urandom | boot
vdr | default
vixie-cron | default
wakeup-reboot-halt |
xinetd |
Zitat
Original von joerg99
Ich habe hier mal ein Leerzeichen eingebaut:
SERVER_OPTS=" -i /var/www/beta7"
Jetzt sieht es so aus:
Zitat
(none) init.d # ./linux_mtp_streaming_server_script
* Caching service dependencies ...
'var/lib/init.d/depcache: line 247: syntax error near unexpected token `{
'var/lib/init.d/depcache: line 247: ` depend() {
* Can't find service 'localmount' needed by 'gpm'; continuing...
* Can't find service 'checkroot' needed by 'hostname'; continuing...
* Can't find service 'modules' needed by 'hotplug'; continuing...
* Can't find service 'localmount' needed by 'keymaps'; continuing... [ ok ]
: No such file or directory
has syntax errors in it; aborting ...
(none) init.d #
Zitat
der Fehler ist line 247
Zitat
# Actual depend() function ...
depend() {
use net
return 0
}
depend
)
#*** /etc/init.d/local ***
SVCNAME="/etc/init.d/local"
Ist das so richtig geschrieben? Wo steht das?Zitat
depscah.sh
Zitat
(none) ~ # rm /var/lib/init.d/debcache
rm: cannot remove `/var/lib/init.d/debcache': No such file or directory
(none) ~ # /sbin/debscan.sh
-bash: /sbin/debscan.sh: No such file or directory
(none) ~ #
Zitat
(none) lib # /sbin/depscan.sh
* Caching service dependencies ...
'var/lib/init.d/depcache: line 247: syntax error near unexpected token `{
'var/lib/init.d/depcache: line 247: ` depend() {
* Can't find service 'localmount' needed by 'gpm'; continuing...
* Can't find service 'checkroot' needed by 'hostname'; continuing...
* Can't find service 'modules' needed by 'hotplug'; continuing...
* Can't find service 'localmount' needed by 'keymaps'; continuing... [ ok ]
(none) lib #