Startup apps in FreeBSD??

AkumaBao

Golden Member
Aug 14, 2001
1,438
0
0
I need to add kdm, and a kldload string to run when I first bootup FreeBSD. I read where it say to add it to your 'rc.d' file, but when I use 'vi' to edit it, it doesn't look like it should be edited that way. :p Am I really suppose to change that file?
 

freebsddude

Senior member
Jan 31, 2002
298
0
0
Greetings:

rc.d is a directory, /usr/local/etc/rc.d

I would have thought that a kdm.sh file would already be there (i.e. under /usr/local/etc/rc.d)
if you installed kdm from the ports collection (i.e. /usr/ports/x11/kde2). I am assuming that kde2
creates a kde.sh startup script.

Worst case, you could create one (i.e. kdm.sh) , and try adding the following line(s) between dashes in there:

---------------------
#!/bin/sh

sleep 20
/usr/local/bin/kdm
---------------------

The sleep allows the login/init process to settle down before invoking kdm.

Finally, do a chmod +x on kdm.sh (i.e. chmod +x kdm.sh).

Startup scripts under /usr/local/etc/rc.d that end with .sh get picked up and automatically invoked/executed.

Best Wishes.