|
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!
|