cjdns-git-sysvinit icon indicating copy to clipboard operation
cjdns-git-sysvinit copied to clipboard

Legacy sysvinit (rc.d/init.d) service for cjdns that should work on most platforms

CJDNS System V Initscript

About

A legacy system v initscript (rc.d/init.d) for cjdns that should work on most platforms.

Setup

  • cjdns: Copy to '/etc/default/cjdns' and change any values needed to match your system configuration.
  • cjdns.rc.d: Copy to your OS' system v initscript location (usually '/etc/rc.d' or '/etc/init.d') with the name 'cjdns' (ie: '/etc/rc.d/cjdns') and make it executable.
  • cjdns.sh: Copy to $PATH and make it executable.

Usage

You can now run the cjdns sysvinit script with the following commands (assuming sysvinit directory '/etc/rc.d'):

  • /etc/rc.d/cjdns: Outputs the following information "usage: /etc/rc.d/cjdns {start|stop|restart|status}".
  • /etc/rc.d/cjdns start: Start cjdroute using the values given in '/etc/default/cjdns'.
  • /etc/rc.d/cjdns stop: Stop cjdroute.
  • /etc/rc.d/cjdns restart: Stop cjdroute, then start it again using the values given in '/etc/default/cjdns'.
  • /etc/rc.d/cjdns status: Displays whether or not cjdroute is currently running.

Credits

  • Written by prurigro: GitHub Projects | Arch Linux AUR Packages
  • Some parts of the 'cjdns.rc.d' script were taken from the initscripts functions script that used to be included in Archlinux.
  • The 'cjdns.sh' script was taken from the cjdns repository, and was written by numerous authors including myself.