finally got the init.d scripts working.
write then rename.