Start Wikipbx On System Startup

WikiPBX init.d script

For this script to work, you will need to either change the paths or open up the permissions for those paths.
Also, this runs the webserver as root, which is not necessarily a good idea. This script should be modified to su to a normal user. Instructions on how to do this will be added in the future.

Create /etc/init.d/wikipbx

# wikipbx webserver
case "$1" in
        . /etc/profile
        pushd /usr/src/wikipbx
        twistd -o --logfile=/var/log/wikipbx.log -y wikipbxweb/
> /var/log/wikipbx_startup.log 2>&1
        echo started
        ps auxww | grep -i wikipbx | grep -i twisteddjango | awk '{print $2}' |
xargs kill
        echo "Usage: $0 { start | stop }"
exit 0
  • change permissions as needed, eg, chmod a+x /etc/init.d/wikipbx
  • and set it to run on system boot by issuing the command
update-rc.d wikipbx defaults 90

WikiPBX must start '''before''' FreeSWITCH, since FreeSWITCH pulls its configuration from WikiPBX

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License