Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 15th October 2008
Xtender's Avatar
Xtender Xtender is offline
New User
Join Date: Jul 2008
Posts: 4
Question rc.d startup script problem


i've tried to create my own statup script, but it doesn't work at startup. it works when run from within /usr/local/etc/rc.d/ directory manually, but not at startup.

i was trying to follow this guide: http://www.freebsd.org/doc/en_US.ISO...ing/index.html

Here is the script:
80# cat /usr/local/etc/rc.d/test
. /etc/rc.subr
/usr/bin/touch /var/log/`date "+%H-%M-%S"`-test.log
load_rc_config $name
run_rc_command "$1"
I have added test_enable="YES" to /etc/rc.conf:
80# ./test rcvar
# test
It works when invoked manually (well, started at 23:40):
80# ./test start && ls /var/log/ | grep test
It just doesn't work upon startup What am i missing?

Thank you!
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
firefox startup very slow. bsdnewbie999 OpenBSD General 5 6th May 2009 05:30 AM
dhclient at startup bsdnewbie999 OpenBSD General 3 31st March 2009 03:55 AM
Tightvnc startup script not loading fonts - permission denied master-richie FreeBSD Ports and Packages 2 3rd August 2008 09:29 PM
Beep on startup? matt Programming 1 16th July 2008 08:33 AM
Problem: periodic script 800.loginfail anomie FreeBSD Security 1 5th May 2008 08:57 PM

All times are GMT. The time now is 06:09 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick