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