Init.d hez program hozzáadása megoldva

Fórumok

Üdv mindenkinek!
HOgyan tudok /etc/Init.d hez programot hozzá adni ha az a /home/tomcsi1987/v/ ben van?

+ a programnak van egy config fájla, és a simán átmásolnám a futtatható fájlt akkor elvileg nem találna confot:(
Hogy lehet ezt megoldani?:)

Esetleges restartnál kellene elindulnia a programnak magától

Hozzászólások

Találtam egy leírást és ez alapján sikerült:

Example startup scripts:

The following script is an example of starting Linux based server(s) from the "/etc/rc.d/rc.local" file when a system is booted. Notice that they are started with the specific user account called "ventrilo" and the process priority is bumped to higher then normal.

# Startup ventrilo servers.

VENPATH=/home/ventrilo
VENBIN=$VENPATH/ventrilo_srv

su ventrilo -c "$VENBIN -f$VENPATH/ventrilo_srv -d"

renice -5 `cat $VENPATH/ventrilo_srv.pid`