Replace user with your username and save the file to the location /etc/init.d/ with the name pagekite and give execute permissions on the file chmod +x pagekite
Then execute:
# update-rc.d pagekite defaults
From now on, you can call:
# service pagekite start
# service pagekite stop
# service pagekite restart
to start, stop, and restart the service respectively.