You are not logged in.

#1 2009-01-11 13:05:03

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

when is /etc/profile called?

with my current boot/startup/login method (see below), /etc/profile is not being called. a little bit of googling tells me that /etc/profile is called at startup - but i'd like to know exactly when and by what. is it only called at bash login? what kind of magic does GDM do to call it?

i added a script /etc/rc.d/startx:

#!/bin/bash

case $1 in
    start)
        su jakob startx&
        ;;
    stop)    
        killall X
        ;;
    restart)
        ;;
    *)
        echo "invalid argument"
esac

and put startx in the DAEMONS array in /etc/rc.conf

Offline

#2 2009-01-11 14:07:37

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: when is /etc/profile called?

Have your checked that startx is in /etc/rc.d/ folder? . If I remember correct the 'profile' is to be placed at the last position in you grub (menu.lst) of booting kernel.

Offline

#3 2009-01-11 14:20:20

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: when is /etc/profile called?

/etc/profile is called when you start a login shell, try changing 'su kakob startx &' to 'su - jakob startx &'

Offline

#4 2009-01-11 15:35:10

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: when is /etc/profile called?

thanks that's what i wanted to know

Offline

Board footer

Powered by FluxBB