Opened 5 years ago

Last modified 5 years ago

#1033 new enhancement

Auto startup (crontab) on *nix

Reported by: guest Owned by:
Priority: minor Milestone:
Component: installer Version:
Keywords: Cc:
Parent Tickets:


Freenet insert a crontab entry to start Freenet on boot on *nix systems at least. Unknown if they use Windows voodoo to achieve the same on Windows.

I2P should do this.

Subtickets (add)

Change History (3)

comment:1 Changed 5 years ago by zzz

  • Component changed from unspecified to installer
  • Milestone 0.9.8 deleted
  • Type changed from defect to enhancement

crontab is for periodic tasks, not boot tasks. Our PPA package does offer to install as a service. To put that into the cross-platform installer sounds difficult.

comment:2 Changed 5 years ago by guest

yes this is the wrong way. kytv wrote many service methods for different init systems into i2prouter script also.

comment:3 Changed 5 years ago by killyourtv

Freenet's installer adds the following to the crontab of the user that installed Freenet.

@reboot   "$FREENET_INSTALLATION_PATH/" start 2>&1 >/dev/null #FREENET AUTOSTART - 8888

While some apparently like it, I was *pissed* when I saw that Freenet added that cronjob _withoutanyprompting_. :P

If we decide this is a good idea, IMHO:
1) It has to be opt-in;
2) We'd have to be careful not to clobber the user's existing crontab due to variations in how cron is called on $OS;
3) Is @reboot supported by other cron daemons than Vixie's cron? If not, will crond ignore it and continue, or will it be like some of the picky *BSD daemons and stop working all together?

Personally, I'd prefer this to be fixed with documentation explaining how to start I2P automatically in Windows, Linux (cron, sysvinit, systemd), FreeBSD, OSX, etc.

Note: See TracTickets for help on using tickets.