Opened 8 years ago

Last modified 8 years ago

#1033 new enhancement

Auto startup (crontab) on *nix

Reported by: DISABLED Owned by:
Priority: minor Milestone:
Component: installer Version:
Keywords: Cc:
Parent Tickets: Sensitive: no


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.


Change History (3)

comment:1 Changed 8 years ago by zzz

Component: unspecifiedinstaller
Milestone: 0.9.8
Type: defectenhancement

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 8 years ago by DISABLED

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

comment:3 Changed 8 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.