Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
local.start bringt Fehler
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Mac Fly
Guru
Guru


Joined: 30 Nov 2003
Posts: 330
Location: nähe Stuttgart

PostPosted: Sun Mar 14, 2004 4:05 pm    Post subject: local.start bringt Fehler Reply with quote

Quote:
macfly@netkiffer:~> cat /etc/conf.d/local.start

## Temporaere Dateien loeschen:
ebegin "Cleaning Tmp"
rm -r -f /tmp/*
rm -r -f /usr/tmp/portage/*
rm -r -f /var/tmp/portage/*
eend $?

## Portage Distfiles loeschen:
ebegin "Cleaning Distfiles"
rm -r -f /usr/portage/distfiles/*
eend $?

## Logitech Tastaturtreiber laden
ebegin "Starte Logitech Tastatur Layout"
su - macfly lineakd & 2&> /dev/null
eend $?


Die ersten 2 funktionieren wunderbar, nur beim dritten erscheint folgende Fehlermeldung:
Code:
Failed to start local
lineakd: /usr/bin/lineakd: cannot execute binary file

Führe ich allerdings als user macfly folgendes aus, gehts auch:
Code:
 lineakd & 2&> /dev/null


Ich habs auch als rc-script versucht:
Code:
#!/sbin/runscript
# Writen by ME! with _LOTS_ of help from Gentoo Forums.


start () {
        ebegin "Starte Logitech Treiber"
        su - macfly /usr/bin/lineakd & 2&> /dev/null
        eend $?
}


stop () {
        ebegin "Stoppe Logitech Treiber"
        killall lineakd
        eend $?
}

restart () {
        ebegin "Restarting Logitech"
                svc_stop
                svc_start
}

Code:
netkiffer linux # /etc/init.d/logitech_keyboard start
 * Starte Logitech Treiber...
/usr/bin/lineakd: /usr/bin/lineakd: cannot execute binary file


Aber es muss doch möglich sein, das es beim booten gestartet wird?
Back to top
View user's profile Send private message
Poppenpopper
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 80
Location: Böblingen

PostPosted: Sun Mar 14, 2004 4:19 pm    Post subject: Reply with quote

was passiert, wenn Du

Code:
su - macfly lineakd & 2&> /dev/null


eingibst? weil den Befehl willst du ja ausführen und nicht nur den

Code:
lineakd & 2&> /dev/null
Back to top
View user's profile Send private message
Mac Fly
Guru
Guru


Joined: 30 Nov 2003
Posts: 330
Location: nähe Stuttgart

PostPosted: Sun Mar 14, 2004 4:34 pm    Post subject: Reply with quote

Es is zum heulen... :(
Code:
netkiffer root # su - macfly lineakd
lineakd: /usr/bin/lineakd: cannot execute binary file

netkiffer root # su - macfly
macfly@netkiffer:~> lineakd &
[1] 5852
macfly@netkiffer:~>


Sprich, als normaler User gehts... Beim booten nicht...


Last edited by Mac Fly on Sun Mar 14, 2004 4:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
Poppenpopper
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 80
Location: Böblingen

PostPosted: Sun Mar 14, 2004 4:38 pm    Post subject: Reply with quote

Was sagt er bei:

su - root -c 'Befehl den Du ausführen willst' &
Back to top
View user's profile Send private message
Mac Fly
Guru
Guru


Joined: 30 Nov 2003
Posts: 330
Location: nähe Stuttgart

PostPosted: Sun Mar 14, 2004 5:00 pm    Post subject: Reply with quote

Danke, das -c wars :)
Back to top
View user's profile Send private message
Poppenpopper
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 80
Location: Böblingen

PostPosted: Sun Mar 14, 2004 5:24 pm    Post subject: Reply with quote

"man su" kann manchmal helfen ;-)

Wo aus der Nähe von Stuttgart kommst denn her?

Grüße
Lars
Back to top
View user's profile Send private message
Mac Fly
Guru
Guru


Joined: 30 Nov 2003
Posts: 330
Location: nähe Stuttgart

PostPosted: Sun Mar 14, 2004 6:20 pm    Post subject: Reply with quote

Ich hab die man gelesen, bin aber nicht wirklich schlau draus geworden... :)
Nähe Backnang :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum