This is one way which enables you to run Instiki at startup in a Debian machine.
After testing your install just put the following line in the file /etc/init.d/bootmisc.sh (just before the exit at the end).
ruby /path/to/your/install/instiki.rb --daemon --storage=/path/to/your/storage
substituing the /path/to/your/install with the path to which you installed Instiki.
With this, you should have Instiki running when you boot your computer.
There may be a better way to do this, but this was the easyest which worked for me.
It is best to specify storage location, rather then rely on default—Alexey Verkhovsky
You can also modify your crontab to start instiki at boot, assuming that your cron clone supports such an option. This has an advantage of not requiring root access.
Check ‘man 5 crontab’ to see if your cron daemon supports such a feature and how to set it up. The default cron under Debian Sarge is vixie cron, which supports the ’@reboot’ syntax.
To run instiki at boot using Slackware you can easily add a simple rc.instiki tab, and a call to it in rc.local
rc.instiki should include:
#!/bin/sh
#Start instiki:
instiki_start() {
instiki —daemon —storage /path/to/storage
}
and add
/etc/rc.d/rc.instiki start
to rc.local
chmod rc.instiki to 755 and you’re ready to roll
To run at login time (so you don’t need to be root) you can put the command inside your .bash_login file in your home directory also…
echo "ruby /path/to/your/install/instiki.rb --daemon --storage=/path/to/your/storage" > ~/.bash_login