View Single Post
Old 28-11-2004, 11:41   #1
dragon
Inactive
 
Join Date: Jan 2004
Posts: 3,898
dragon has reached the bronze age
dragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze age
writing an init script?

im trying to write a initscript to run the command

portfwd -c pf.conf but tbh i dunno how to do it.

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

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


but it doesnt work

portfwd is in /usr/local/sbin/

id be gratefull if someone could tell me where im going wrong?


running portfwd -c /usr/local/sbin/pf.conf from the commandline works but i need it to be run on startup
dragon is offline   Reply With Quote