You are not logged in.

#1 2007-03-05 00:58:30

root_tux_linux
Member
From: Basel, Switzerland
Registered: 2005-01-01
Posts: 53
Website

rc.local don't execute any command!

Hi

I want  execute irexec -d with rc.local but it doen't work sad

#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#
irexec -d
[root@MediaBox ~]# cat /etc/inittab
#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S)       Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

id:3:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

c1:2345:respawn:/sbin/agetty 38400 vc/1 linux
c2:2345:respawn:/sbin/agetty 38400 vc/2 linux
c3:2345:respawn:/sbin/agetty 38400 vc/3 linux
c4:2345:respawn:/sbin/agetty 38400 vc/4 linux
c5:2345:respawn:/sbin/agetty 38400 vc/5 linux
c6:2345:respawn:/sbin/agetty 38400 vc/6 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

x:5:respawn:/usr/bin/xdm -nodaemon

# End of file
[root@MediaBox ~]#

Help me pls smile

Offline

#2 2007-03-05 06:57:07

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: rc.local don't execute any command!

Hi root_tux_linux,
I'm not sure, but try to specify the full path of the command

Offline

#3 2007-03-05 07:21:37

dienadel
Member
Registered: 2005-12-23
Posts: 179

Re: rc.local don't execute any command!

I'm not sure, but, doesn't irexec need X to work? so, executing it by rc.local, won't work. Have you tried starting it from a xterm (konsole,...)?

Offline

#4 2007-03-05 09:52:04

noriko
Member
From: In My Mind
Registered: 2006-06-09
Posts: 535
Website

Re: rc.local don't execute any command!

if it needs X then u could use the gnome autostart system ... xfce uses the sae as well ... i'm not sure but kde might use the same base as well .... add via their respective menu options..
gnome: System > Prefernces > sessions
xfce: *Session* i can't remember, sorry ..
the same is for kde, most liekly under session management, of some sort...

gnome's directory is .. /noriko/.config/autostart | i think xfce uses that as well, i'm not sure about kde,,,

they are just desktop files: gaim.desktop

[Desktop Entry]
Name=No name
Encoding=UTF-8
Version=1.0
Exec=gaim
X-GNOME-Autostart-enabled=true

The.Revolution.Is.Coming - - To fight, To hunger, To Resist!

Offline

#5 2007-03-05 12:31:31

root_tux_linux
Member
From: Basel, Switzerland
Registered: 2005-01-01
Posts: 53
Website

Re: rc.local don't execute any command!

irexec dont need X...


[root@MediaBox ~]# /etc/rc.d/gdm stop
:: Stopping GDM                                                                 [DONE]
[root@MediaBox ~]#
[root@MediaBox ~]# irexec -d && ps -ae | grep irexec
 3374 ?        00:00:00 irexec
[root@MediaBox ~]#

HELP

Offline

#6 2007-03-05 13:13:57

dienadel
Member
Registered: 2005-12-23
Posts: 179

Re: rc.local don't execute any command!

I don't use lirc anymore, but i'm quite sure that what i made, was putting irexec in the autostart folder (KDE)

Offline

#7 2007-03-05 14:04:20

root_tux_linux
Member
From: Basel, Switzerland
Registered: 2005-01-01
Posts: 53
Website

Re: rc.local don't execute any command!

I installed now  KDE an put  a link tu irexec and now it works ^^

Offline

Board footer

Powered by FluxBB