Ah, I'm more used to Debian. I should've realized that you were using a Redhat derivative. I think in that case you just want to make sure your script exists with 0.
On 4/30/07, Arnie Sherman <[EMAIL PROTECTED]> wrote: > > Erik Bray wrote: > > Are you sourcing lsb init-functions (or something similar)? You > > should be able to use `log_end_msg 0` to indicate success. > > > I source the /etc/rc.d/init.d/functions file. I've modeled the script > off of the /etc/rc.d/init.d/readahead file, as it was the most basic > startup file there (this is on CentOS 4) > > I've been looking at the scripts I have for httpd. iptables, and mysqld > and it seems that there needs to be a return value to /sbin/service, > which I guess is basically what log_end_msg does? > > > On 4/30/07, Arnie Sherman <[EMAIL PROTECTED]> wrote: > > > >> I have created a simple script in /etc/rc.d/init.d to start tracd at > >> boot time, and set it up with chkconfig. It also let's me stop, start, > >> and restart tracd with /sbin/service tracd start , etc. > >> > >> It's working fine, except I'd like to get it to echo the [ OK ] > >> message I get when using /sbin/service for things like httpd and mysqld. > >> I've been looking through those startup scripts, but cannot yet figure > >> out how that is done. Any suggestions would be greatly appreciated. > >> > >> Thanks, > >> Arnie Sherman > >> > >> > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
