View Single Post
Old 28-11-2004, 11:54   #2
Graham M
Inactive
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 41
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: writing an init script?

If I remember correctly, when an init script runs the paths aren't set

so to get this to run, you'd need to put:

#!/bin/bash
#
# Init file for portfwd
#
# chkconfig: 2345 55 25
# description: portfwd
#

/usr/local/sbin/portfwd -c /usr/local/sbin/pf.conf


I am certain this is correct for CRON jobs and am pretty sure its the same for init scripts!
Graham M is offline   Reply With Quote